A SyntaxError
is reported by the Python interpreter when some portion of the code is incorrect. This can include misspelled keywords, missing or too many brackets or parentheses, incorrect operators, missing or too many quotation marks, or other conditions.
age = 7 + 5 = 4File "<stdin>", line 1SyntaxError: can't assign to operator