[Tutor] input python 3.3

Ian D duxbuz at hotmail.com
Tue Feb 4 10:01:32 CET 2014


Hello
 
I used to use 2.7 and the input was pretty when inputting a numeric value, it would just get cast to an int.
 
Seems that 3.3 I have to cast each input so :
float(num1 = input("Enter a number")
 
Is this just they way it is now? Is there a way to get back to just typing:
 num1 = input("Enter a number ")
 in python 33.
 
Seems a backwards step unless (and am sure this is the case)it is beneficial in so many other ways?
 
Thanks
 
 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140204/ea9933a2/attachment.html>


More information about the Tutor mailing list