On 20/04/2013 21:33, Pat Collins wrote:
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)

Why not number1 = float(input("Give me a number: ")) ?


number_string2 = float(input("Give me another number: "))
number2 = (number_string2)

Ditto.


print number1, "times", number, "+", number1 * number2


You're using Python 3 so print needs parenthesis as it's a function and not a statement.


--
If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython.

Mark Lawrence

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to