Hi everyone,
So ATM I'm learning python using
this wikibook. The problems start when I get to
here. When I run the 'Who goes there' program in IDLE I get:
Code:
Who goes there? james
Traceback (most recent call last):
File "/home/james/TIOBE8/learned.py", line 1, in <module>
user = input('Who goes there? ')
File "<string>", line 1, in <module>
NameError: name 'james' is not defined
>>>
And when I run the next program on assignment I get:
Code:
Type in a number: 12.3
Type in an integer: 123
Type in a string: hello
Traceback (most recent call last):
File "/home/james/TIOBE8/learned.py", line 3, in <module>
text = input("Type in a string: ")
File "<string>", line 1, in <module>
NameError: name 'hello' is not defined
>>>
Weird thing is, I distinctly remember doing this program and many others about a year ago, and they worked perfectly

Have I missed some syntax changes since then??
(P.S, and before you ask, I have RTFM. And googled it.)