You can use the keyword module for this purpose. Import the module and use the function called kwlist. It will list down all the keywords used in the current version of python.
# import keyword library
import keyword
list = keyword.kwlist
print("No. of keywords present in current version :",
len(list))
print(list)