How to Get a Python Program to Do Nothing with an If Statement?

Using a pass Statement:

The pass statement in Python does nothing but allows the program to continue running without any action being taken. It’s often used as a placeholder where code is required syntactically but no action is needed. For instance:

if (num2 == num5):  
    pass  # Python do nothing

It’s simple and explicit, and you’ll often see this in code as a way to keep things neat while you’re still working on it.