Pass statement in Python used to delay the time of compilation or when we do not know what code to write. In any function of a parent class which is useless to that class , but it is an useful function to it’s child classes to avoid any error in base class then we just use pass statement.
Pass Statement in Python
In python , Pass statement is a null statement. Interpreter does not ignores pass statement eventually it does not do anything about pass statement.
Implementation :
If there is an empty body of function or class we can use pass statement.
Login/Signup to comment