• Register
0 votes

Problem :

When I try to use a print statement in Python, it gives me below error:
SyntaxError: Missing parentheses in call to 'print'
by (6.9k points)  

1 Answer

0 votes

Solution :

The error message suggests that you are attempting to use Python 3 to run a program that uses the Python 2 print statement:

In Python 3 you need to add parentheses around the value to be printed:

print("Hello, World!")

Further Readings:


by (36.1k points)  
edited by