L
leroybt.rm
I don't understand why this does not work:
<FILE1> test1.py
#Import Packages
import string
#
data=0
data=data+1
print data
<FILE2> test2.py
#Import Packages
import string
#
if __name__ == "__main__":
data=0
data=data+1
print data
Traceback ( File "<interactive input>", line 1
python test.py
^
SyntaxError: invalid syntaxTraceback ( File "<interactive input>", line 1
python test.py
^
SyntaxError: invalid syntax
I just don't understand why theSE line command do not work? Im new to
Pythonwin. But not new to programming (background C,C++,java,tcl,
perl,jovial,etc...)
I decided to pick up this language because I wanted a powerful script
language at hand - tcl sucks!
<FILE1> test1.py
#Import Packages
import string
#
data=0
data=data+1
print data
<FILE2> test2.py
#Import Packages
import string
#
if __name__ == "__main__":
data=0
data=data+1
print data
Traceback ( File "<interactive input>", line 1
python test.py
^
SyntaxError: invalid syntaxTraceback ( File "<interactive input>", line 1
python test.py
^
SyntaxError: invalid syntax
I just don't understand why theSE line command do not work? Im new to
Pythonwin. But not new to programming (background C,C++,java,tcl,
perl,jovial,etc...)
I decided to pick up this language because I wanted a powerful script
language at hand - tcl sucks!