In Python, the
pass the keyword is an entire statement in itself. This statement doesn’t do anything: it’s discarded during the byte-compile phase. But for a statement that does nothing, the Python statement is surprisingly useful.
pass is useful in the final code that runs in production. More often,
pass is useful as scaffolding while developing code. In specific cases, there are better alternatives to doing nothing.