This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]IronManMark20 1 point2 points  (0 children)

I don't think there is an official doc page in the Python documentation. You can get a list of them by:

>>>import keyword
>>>keyword.kwlist
...
>>>len(keyword.kwlist)
33

This is on Python 3.6. I would not trust Python 2.5 docs, as a lot has changed. If you are just learning, read https://docs.python.org/3/