Trying to run such simple program on Windows (it works pretty good on my Mac OSX), and here is the program and error message, when cursor stops on print a
, there is an alert saying end of statement expected. Do I need to do anything special for Python on Windows?
if __name__ == "__main__":
a=[1,2,3]
print a
Error:
D:\python3.4.0\python.exe C:/Users/mayfv/PycharmProjects/HelloWorld/HelloWorld.py
File "C:/Users/aaa/PycharmProjects/HelloWorld/HelloWorld.py", line 4
print a
^
SyntaxError: invalid syntax
thanks in advance, Lin