Skip to content
Rafael J. Rodriguez edited this page May 17, 2016 · 2 revisions

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