keyword for empty function to continue the block python

Solutions on MaxInterview for keyword for empty function to continue the block python by the best coders in the world

showing results for - "keyword for empty function to continue the block python"
Juan Pablo
25 Oct 2020
1# Correct way of writing empty function 
2# in Python 
3def fun(): 
4	pass
5
6  
7# Empty loop in Python 
8mutex = True
9while (mutex == True) : 
10	pass
11
12  
13# Empty in if/else in Python 
14mutex = True
15if (mutex == True) : 
16	pass
17else : 
18	print("False") 
19