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.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor