Copyright (c) Hyperion Entertainment and contributors.

AmigaOS Manual: Reserved Python Words

From AmigaOS Documentation Wiki
Revision as of 11:30, 21 August 2022 by Janne Peräaho (talk | contribs) (Table of keywords)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
print
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.