What does "SyntaxError: Missing parentheses in call to 'print'" mean in Python?

The "SyntaxError: Missing parentheses in call to 'print'" error message is raised when you are using Python 3 and you have forgotten to include the parentheses when calling the print() function.

In Python 3, the print statement has been replaced with the print() function, which must be called with parentheses. In Python 2, the print statement did not require parentheses.

Watch a course Python - The Practical Guide

Here's an example of code that will raise this error in Python 3:

print 'Hello, world!'

To fix this error, you need to add the parentheses when calling the print() function:

print('Hello, world!')

This error may also be raised if you are using parentheses in a way that is not syntactically correct. For example, the following code will also raise this error:

print('Hello, world!)

To fix this error, you need to make sure that all parentheses in your code are properly matched and nested. In this case, the error is caused by a missing closing parenthesis.