Python Pass

In this page you learn about of When you do not need any code to execute, pass Statement is used. It is same as the name refers to. It objective types the control to pass by without implementing any code. If we want to avoid any code pass statement can be used.

						 pass  

Example

for i in [1,2,3,4,5]:  
    if i==3:  
        pass  
        print "Pass when value is",i  
    print i,  

Output

>>>   
1 2 Pass when value is 3  
3 4 5  
>>>