[Tutor] Why do I get an "unvalid syntax" on the print line for number1
Pat Collins
collins.pat0108 at gmail.com
Sat Apr 20 22:33:32 CEST 2013
Any help appreciated.
#!/usr/bin/env python
"""
number.py Demonstrates collecting a number from the user.
"""
number_string1 = float(input("Give me a number: "))
number1 = (number_string1)
number_string2 = float(input("Give me another number: "))
number2 = (number_string2)
print number1, "times", number, "+", number1 * number2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130420/6191aa99/attachment.html>
More information about the Tutor
mailing list