# Keywords
# Alle Keywords
Deze keywords hebben een speciale betekenis en mogen niet gebruiktworden voor bijvoorbeeld variabelenamen.
False
None
True
and
as
assert
async
await
break
class
continue
def
del
elif
else
except
finally
for
from
global
if
import
in
is
lambda
nonlocal
not
or
pass
raise
return
try
while
with
yield
# Lijst met Keywords
# ./python/keywords.py
import keyword
for i, kw in enumerate(keyword.kwlist):
strings = (str(i + 1).rjust(2),
kw
)
print('%s. %s' % strings)
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
$ python3 ./python/keywords.py
1. False
2. None
3. True
4. and
5. as
6. assert
7. async
8. await
9. break
10. class
11. continue
12. def
13. del
14. elif
15. else
16. except
17. finally
18. for
19. from
20. global
21. if
22. import
23. in
24. is
25. lambda
26. nonlocal
27. not
28. or
29. pass
30. raise
31. return
32. try
33. while
34. with
35. yield
$ _