Python Keyword Module
Python keyword testing — iskeyword, kwlist, softkwlist. This category documents 3 Python keyword module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: keyword.iskeyword(), keyword.kwlist, keyword.softkwlist. keyword.iskeyword() returns True if s is a Python keyword. keyword.kwlist a list of all Python keywords in the current version. keyword.softkwlist a list of Python soft keywords (that can be used as identifiers). Keyword Module belongs to the Core Language group alongside Built-in Functions, Statements & Keywords, Typing Module, Dataclasses Module. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground. Python Reference documents 978+ functions, methods, and modules across 114 categories of the standard library, and every entry in this Keyword Module category follows the same format — syntax first, then what it does, the parameters it accepts, what it returns, and a working code example — so once you have read one page you can read them all.