[Tutor] Miles Per Gallon Calculator`
iannaconec at optonline.net
iannaconec at optonline.net
Thu Sep 18 12:14:54 CEST 2008
When <variable> = raw_input ( " please enter a number " )<variable> = int (<variable>) is run as part of a python script It should take in the user stored input and store it as an integer. Am I correct. The string represented by <variable> in memory is now represented by 5 for example?If this is correct why do I get an error regarding the division of two strings if i type print " < variable> " / < variable>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080918/c8f325da/attachment.htm>
More information about the Tutor
mailing list