Codecademy Logo

Unit Testing

Print Cheatsheet

SyntaxError

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 parenthesis, incorrect operators, missing or too many quotation marks, or other conditions.

age = 7 + 5 = 4
File "<stdin>", line 1
SyntaxError: can't assign to operator