contact@eeehub.in +919470012104

Reserved Words

Reserve Words: A word in a programming language or computer system that has a fixed meaning and therefore it cannot be redefined by a programmer or coder like you. So, you cannot use them as constants or variables or any other identifier names.

Note: All the Python keywords contain lowercase letters only except True, False


  1. and: A logical operator
  2. as: To create an alias
  3. assert: For debugging
  4. break: To break out of a loop
  5. class: To define a class
  6. continue: To continue to the next iteration of a loop
  7. def: To define a function
  8. del: To delete an object
  9. elif: Used in conditional statements, same as else if
  10. else: Used in conditional statements
  11. except: Used with exceptions, what to do when an exception occurs
  12. exec: Boolean value, result of comparison operations
  13. False: Boolean value, result of comparison operations
  14. finally: Used with exceptions, a block of code that will be executed no matter if there is an exception or not
  15. for: To create a for loop
  16. from: To import specific parts of a module
  17. global: To declare a global variable
  18. if: To make a conditional statement
  19. import: To import a module
  20. in: To check if a value is present in a list, tuple, etc.
  21. input: A input function in python.
  22. is: To test if two variables are equal
  23. lambda: To create an anonymous function
  24. not:A logical operator
  25. or: A logical operator
  26. pass: A null statement, a statement that will do nothing
  27. print: A output function in python.
  28. raise: To raise an exception
  29. return: To exit a function and return a value
  30. try: To make a try...except statement
  31. True: Boolean value, result of comparison operations
  32. while:To create a while loop
  33. with: Used to simplify exception handling
  34. yield: To end a function, returns a generator

We will be discussing all keywords in upcoming article.