P
pradeep
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?
===============
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?