syntax error : first python program
pradeep
bansal.pradeep at gmail.com
Tue Dec 22 23:58:01 EST 2009
I have this file in linux
===============
sample.py
#!/usr/bin/env python
name = "blah"
print name
-------------------------------------------
I executed this
bash# ./sample.py
File "./sample.py", line 2
name = "blah"
^
bash# /usr/bin/python sample.py
File "sample.py", line 2
name = "blah"
^
SyntaxError: invalid syntax
Any one knows , whats the syntax error here?
More information about the Python-list
mailing list