Keyword Attributes
keyword.softkwlist
Sequence of context-sensitive keyword spellings for this interpreter. Do not treat these as globally reserved identifiers.
Formal Syntax & Structure
python syntaxpython
keyword.softkwlistReturn Value
list[str]
The list[str] result described above.
Working Example
Example Snippetpython
import keywordprint(sorted(keyword.softkwlist))