python - Pythonwin - print function not working -
this question has answer here:
- syntax error on print python 3 [duplicate] 10 answers
i'm running pywin32 build 216.1 , having trouble using simple print function - example:
>>> print 'hello!'
should return:
hello!
but instead get:
traceback ( file "<interactive input>", line 1 print 'hello!' ^ syntaxerror: invalid syntax
it doesn't matter try , use print, gives me same error. able other things fine long don't involve use of print function. can help?
in python 3, print function, not statement. call like:
print("hello!")
Comments
Post a Comment