Next / Previous / Contents / TCC Help System / NM Tech homepage

22.7. The pass statement: Do nothing

Python's pass statement is a placeholder. It does nothing.

Here's an example. Suppose you have a function named arr() that does something and then returns a True or False value. You want to keep calling this function until it returns a false value. This code would suffice:

while arr():