Copyright (c) Hyperion Entertainment and contributors.
AmigaOS Manual: Reserved Python Words
Python has 34 keywords that have a predefined meaning and thus they cannot be used as a variable name. The keywords are:
| Keyword | Description |
|---|---|
| and | A logical operator |
| as | |
| assert | |
| break | |
| class | |
| continue | |
| def | |
| del | |
| elif | |
| else | |
| except | |
| exec | |
| False | |
| finally | |
| for | |
| from | |
| global | |
| if | |
| import | |
| in | |
| is | |
| lambda | |
| None | |
| not | A logical operator |
| or | A logical operator |
| pass | |
| raise | |
| return | |
| True | |
| try | |
| while | |
| with | |
| yield |
All the keywords except False, None, and True are in lowercase and they must be written as they are.