pass

A statement that does nothing, used where Python requires a statement but you have nothing to write yet.

In more detail

A function stub, an empty class or an except that deliberately ignores an error can contain just pass. Python would otherwise report an IndentationError for the missing block.

Example

def todo():
    pass

Related terms

Taught in

References

Certification courses