Python Keywords - ashish9342/FreeCodeCamp GitHub Wiki

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

⚠️ **GitHub.com Fallback** ⚠️