Python Keywords :

Variable names and keywords :

Programmers generally choose names for their variables that are meaningful—they document what the variable is used for. Variable names can be arbitrarily long. They can contain both letters and numbers, but they have to begin with a letter. It is legal to use uppercase letters, but it is a good idea to begin variable names with a lowercase letter.

Python has a set of keywords that are reserved words that cannot be used as variable names, function names, or any other identifiers. The interpreter uses keywords to recognize the structure of the program, and they cannot be used as variable names.

Reserved keywords :

  1. and
  2. as
  3. assert
  4. break
  5. class
  6. continue
  7. def
  8. del
  9. elif
  10. else
  11. except
  12. False
  13. finally
  14. for
  15. from
  16. global
  17. if
  18. import
  19. in
  20. is
  21. lambda
  22. None
  23. nonlocal
  24. not
  25. or
  26. pass
  27. raise
  28. return
  29. True
  30. try
  31. while
  32. with
  33. yield

Note : Here we mix/shuffle all Reserved Keywords with 2 colors , cause if all options is belong some color then we think some time reader confused which one he/she read or which one not (mistake) so, here we use 2 type colors.

Next Update


Currently we improved our website User Interface and other contents. Our next update is adding video tutorials on this site so, We create a new YouTube channel, our YouTube channel name is CodeX.

We need some time for make video tutorials (CodeX) so, stay with us and keep supporting and you know already we make a Collaboration with HackIsOn YouTube channel long time ago So, please Subscribe Our Channels