Pass Statement


pass Statement in Python 3:


It is used when a statement is required syntactically but you do not want any command or code to execute.

The pass statement is a null operation; nothing happens when it executes. The pass statement is also useful in places where your code will eventually go, but has not been written yet i.e. in stubs).

Syntax


pass


When the above code is executed, it produces the following result-