eastcentral

User INPUT in Python

Discussion created by eastcentral on Apr 12, 2012
Latest reply on Apr 12, 2012 by curtvprice
What I thought would be the easiest line of Python code in the world isn't working for me.

Here's the line:

startyr = raw_input("Enter year to start: ")

Here's the error:

Runtime error <type 'exceptions.EOFError'>: EOF when reading a line


Here's the question:

How do you allow the user to type in a value for a variable?

Thanks in advance!

Outcomes