pass Statement in Python
pass means do nothing. Python forbids an empty block after a colon, so pass keeps the syntax valid while you design. def todo(): pass. class Empty: pass. if ready: pass. Later you fill the body. It is not a delay and not a comment — it is a real statement that does zero work.
Viva: “why empty if needs pass”. Because indent + colon requires at least one statement. # comment alone is not a statement.
pass Statement in Python — output — Keep practising. pass lets the if-90 block exist without code yet.
Why empty if/def needs pass.