What is Pass in Python?

Pass specifies a Python statement without operations. It is a placeholder in a compound statement. If we want to create an empty class or functions, the pass keyword helps to pass the control without error.

Example:

  1. class Student:   
  2.     pass # Passing class    
  3. class Student:    
  4.     def info():  
  5.         pass # Passing function