On 22/10/13 14:55, Ricardo Aráoz wrote:
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.
Maybe, but typical programming classes don't teach try/except till much later in the course. Since the OP is evidently a very new beginner I doubt if they've covered it yet... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor