[Tutor] Alternative to for/while loop

Alan Gauld alan.gauld at yahoo.co.uk
Tue Oct 25 05:36:38 EDT 2016


On 25/10/16 09:31, Wolfgang Maier wrote:

> A possible explanation is that, as you are saying, the book uses 
> python2. In python2, input does not return a string, but evaluates the 
> input from the user to produce different types of objects. So in Python2:

Good catch Wolfgang, that's probably what the author had
in mind. I'd actually forgotten about v2 input(), it is
so long since I used it! :-)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list