Skip to content
Quincy Larson edited this page Aug 20, 2016 · 1 revision

Python Keywords

Python has a list of keywords that cannot be used as identifiers (variable names):

>>> False = "Hello campers!"
File "<stdin>"
SyntaxError: can't assign to keyword
>>> break = "Hello campers!"
File "<stdin>", line 1
    break = "Hello campers!"
            ^
    SyntaxError: invalid syntax

Previous

Clone this wiki locally