Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

KEY WORDS

In Python, keywords are reserved words that have specific meanings and purposes within the language.
These keywords cannot be used as identifiers (e.g., variable names or function names) because they are
already predefined for specific functionalities. As of my knowledge cutoff in September 2021, the
following are the keywords in Python:

```

False class from or

None continue global pass

True def if raise

and del import return

as elif in try

assert else is while

async except lambda with

await finally nonlocal yield

break for not

```

It's important to note that Python versions may change over time, and new versions might introduce
additional keywords. To get the most up-to-date list of keywords for your specific Python version, you
can use the `keyword` module:

```python

import keyword

print(keyword.kwlist)

```

You might also like