Added steps to check keywords in python (#21511)
* Added steps to check keywords in python >>> import keyword >>> print (keyword.kwlist) ['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield'] >>> * Format the text properly
This commit is contained in:
committed by
Christopher McCormack
parent
a758619046
commit
cf44c7246d
@ -26,3 +26,10 @@ Keyword | - | - | - | -
|
|||||||
`as` | `elif` | `if` | `or` | `yield`
|
`as` | `elif` | `if` | `or` | `yield`
|
||||||
`assert` | `else` | `import` | `pass`
|
`assert` | `else` | `import` | `pass`
|
||||||
`break` | `except` | `in` | `raise`
|
`break` | `except` | `in` | `raise`
|
||||||
|
#### To check keywords in python run the below
|
||||||
|
```python
|
||||||
|
>>> import keyword
|
||||||
|
>>> print (keyword.kwlist)
|
||||||
|
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
|
||||||
|
>>>
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user