diff --git a/guide/english/python/keywords/index.md b/guide/english/python/keywords/index.md index d5ac4dfd1a..36b954b448 100644 --- a/guide/english/python/keywords/index.md +++ b/guide/english/python/keywords/index.md @@ -3,7 +3,8 @@ title: Python Keywords --- ## Python Keywords -Python has a list of keywords that cannot be used as identifiers (variable names). Trying to use any of these keywords as variables will create a Syntax Error and your Python script will not be run: +Keywords are the reserved words present in all programming languages .Python has a list of +keywords that cannot be used as function names or identifiers (variable names) .Python is a dynamic language , so the list of keywords may change in future. Currently, there are 33 keywords in Python 3.3 . Trying to use any of these keywords as variables will create a Syntax Error and your Python script will not run: >>> False = "Hello campers!" File "" @@ -26,10 +27,6 @@ Keyword | - | - | - | - `as` | `elif` | `if` | `or` | `yield` `assert` | `else` | `import` | `pass` `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'] ->>> -``` + + +All the keywords except `True` , `False` and `None` are in lowercase as shown above.