Back
When I am working on python I am getting this below error:
>>> print "hello World" File "<stdin>", line 1 print "hello World" ^SyntaxError: invalid syntax
>>> print "hello World"
File "<stdin>", line 1
print "hello World"
^
SyntaxError: invalid syntax
In python version 3 need to follow the below syntax:
print("Hello World")
The print statement should be followed by a parenthesis.
Improve your knowledge in data science from scratch using data scientist
31k questions
32.8k answers
501 comments
693 users