On Sat, Apr 20, 2013 at 10:33 PM, Pat Collins <collins.pat0...@gmail.com> 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) > > number_string2 = float(input("Give me another number: ")) > number2 = (number_string2) > > print number1, "times", number, "+", number1 * number2 > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor >
You are probably using Python 3 (check with `python --version`). In this version, print is a function. You need to do the following instead: print(number1, "times", number, "+", number1 * number2) -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail | always bottom-post http://asciiribbon.org | http://caliburn.nl/topposting.html _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor