SyntaxError: Missing parentheses in call to ‘print’.

It’s been a while since I did some Python code. I updated to Python 3.8 from Python 2.7. While trying to run a program written in Python2.7 under Python3.8 I’m getting the above error.

Python 3.8.0
>>> print "Hello World"
  File "<stdin>", line 1
    print "Hello World"
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Hello World")

print statement has been replaced by print() function. So to get it working in Python 3.0+ you need to use print() function.

Python 3.8.0
>>> print("Hello World")
Hello World