My code:
print "Hello World!"
I even tried adding a semicolon behind, but everytime I save and run (as Python run) it says:
File “E:\Software\Eclipse\Workspace\Python1\src\main.py”, line 1
print “Hello World!”;SyntaxError: invalid syntax
I have no idea why.
What version of Python are you using? Python 2.X has
printas a keyword, but Python 3.X only hasprint()as a function – you’d need to useprint("Hello, World!")instead.