[Tutor] Fwd: Re: Passing arguments?

Ricardo Aráoz ricaraoz at gmail.com
Tue Oct 22 15:55:55 CEST 2013


El 22/10/13 10:44, Alan Gauld escribió:
> On 22/10/13 14:21, Ricardo Aráoz wrote:
>> - Did you notice your assignment specifically asks for a "while" loop
>> for validation? ... (tip: you should be using "while" and "on
>> error")
>
> on error?
> You're not thinking of VB by any chance? :-)
>
> In Python it would be a try/except block or maybe a straight if/else 
> test for a beginner.
>

LOL and blush.
Sorry, meant try/except (I was thinking VFP).
Wouldn't if/else be more difficult when validating if an input is a 
valid float? I find try/except easier.



More information about the Tutor mailing list