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:
- class Student:
- pass # Passing class
- class Student:
- def info():
- pass # Passing function