Spae
February 2nd, 2013, 05:55 AM
I started learning python a few days ago.
The input operator will work in IDLE (v3.3) but not if i use the same code in a .py within the terminal.
For example:
a = input("type anything")
print(a)
type anything ok
Traceback (most recent call last):
File "p.py", line 1, in <module>
a = input("type anything ")
File "<string>", line 1, in <module>
NameError: name 'ok' is not defined
The input operator will work in IDLE (v3.3) but not if i use the same code in a .py within the terminal.
For example:
a = input("type anything")
print(a)
type anything ok
Traceback (most recent call last):
File "p.py", line 1, in <module>
a = input("type anything ")
File "<string>", line 1, in <module>
NameError: name 'ok' is not defined