Python keywords

What is keyword?

Keywords are the reserved words whose meaning already defined in the python interpreter. each keyword  has special meaning in python.


1) We can't use a keyword as a variable-name , method-name or any other identifier.

2) Python keywords are the case sensitive.

3) There Are total 35 Keywords:-['False','None','True','and','as','assert','async','await','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']



Comments