Re: [pyar] ¿If anidado?

Página superior
Adjuntos:
+ (text/plain)
+ (text/html)

Responder a este mensaje
Autor: Manuel Aráoz
Fecha:  
A: pyar
Asunto: Re: [pyar] ¿If anidado?
nooo que es eso de hacer
while True:
...
if algo:
break;

eso es feo!
mucho más lindo lo que propusieron de

while not edad.isdigit():
print "No ingresaste un nro!"
edad = raw_input()



2009/9/16 Facundo Batista <facundobatista@???>

> 2009/9/16 Roberto Alsina <ralsina@???>:
>
> > while True:
> > edad=raw_input('¿Cuantos años tenes?')
> > if edad.isdigit():
> > break
> > print 'No ingresaste un numero!'
>
> +1
>
> --
>
> . Facundo
>
> Blog: http://www.taniquetil.com.ar/plog/
> PyAr: http://www.python.org/ar/
>
> ---------------------------------------------------------------------
> Para dar de baja la suscripcion, mande un mensaje a:
> pyar-unsubscribe@???
>
> Para obtener el resto de direcciones-comando, mande un mensaje a:
> pyar-help@???
>
> PyAr - Python Argentina - Sitio web: http://www.python.com.ar/
>
>
>