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:
   pass
else:
   pass
raja
Published on 14-Feb-2018 19:04:17
Advertisements