KEYWORDS in  PYTHON

  • Predefined or Reserved words are called keywords.
        Note:They can't be used as variable name as their meaning is already reserved.

There are 33 Keywords in python 3.

If you want to see the list of keywords in python
Just go to IDLE

      FILE->New->save as test.py

code:

    import keyword
    print(keyword.kwlist)
                             



1.Three keywords True,False,None start with capital letter while other keyboard start with small letter.
2.In python ,
                    do while loop,switch expression is not available like C,C++ etc.
3.In python,
                   if  else,while for,and or not is available as keyword.

Comments

Popular posts from this blog

Pre-defined Function in python

Comments in Python