Python Theory
Pass Statement:
Syntax |
---|
pass |
Example-1 |
---|
'''pass is just a placeholder for functionality to be added later''' sequence = {'s','k','i','l','l'} for val in sequence: pass |
Example-2 |
---|
for i in [1,2,3,4,5]: if(i==4): pass print("This is pass block",i) print(i) |
Output |
---|
#We can create empty class or function using the pass statement. #Empty Function def function_name (args): pass #Empty Class class Python: pass |