Can we use pass statement in a Python if clause?

PythonServer Side ProgrammingProgramming

In Python, pass keyword is a dummy statement. It is used where a statement is necessary to fulfill syntax requirement but the actual implementation of processing logic is yet to be finalized. It can be used in if as well as else block

if expr==True:
Updated on 18-Jun-2020 13:01:38