[Tutor] input python 3.3

Dave Angel davea at davea.name
Tue Feb 4 13:44:04 CET 2014


 Ian D <duxbuz at hotmail.com> Wrote in message:
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
> 

When making an amendment to a post,  please reply to that post; 
 don't start a new thread,  especially with a new subject.  And
 please post in text, not html.

Others have answered your question,  but I wanted to point out
 that in 2.x,  the program really has no idea what type of value
 will be returned to input (). Could easily be float,  int, tuple,
 list, Nonetype,  or thousands of other things,  including many
 exceptions.  With 3.x it's a string,  and the programmer remains
 in control.  

-- 
DaveA



More information about the Tutor mailing list