I am totally new to python, I wrote such a simple code, as
in file ggg.py I wrote
var = raw_input("Enter something: ")
print "you entered ", var
under linux shell, I issue
python ggg.py
it complains
File "ggg.py", line 1
var = raw_input("Enter something: ")
^
SyntaxError: invalid syntax
any idea what goes wrong?
in file ggg.py I wrote
var = raw_input("Enter something: ")
print "you entered ", var
under linux shell, I issue
python ggg.py
it complains
File "ggg.py", line 1
var = raw_input("Enter something: ")
^
SyntaxError: invalid syntax
any idea what goes wrong?