Copyright (c) Hyperion Entertainment and contributors.

Difference between revisions of "AmigaOS Manual: Reserved Python Words"

From AmigaOS Documentation Wiki
Jump to navigation Jump to search
(Table of keywords)
(No difference)

Revision as of 11:30, 21 August 2022

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.