name = input("Hi. What's your name? ")
print(name)
print("Hi,", name)
input("\n\nPress the enter key to exit.")
But when I enter my name in my Python 2.6 program and press enter, the program closes. I think it's a difference between the two versions of the software (rather than my error) because when I downloaded the program from the book's website, not only was the code the same as mine, the same thing happened when I ran the program.
Is there an easy substitution I can make to make that kind of code work in 2.6, or would it be better to download 3.1 (even though we are using 2.6 for class, so I'd rather use that as much as possible)?
I apologize if this is a stupid or inappropriate question.

New Topic/Question
Reply



MultiQuote




|