void fun() { }
In Python, if we write something like following in Python, it would produce compiler error.
# Incorrect empty function in Python
def fun():
In Python, to write empty functions, we use pass statement. pass is a special statement in Python that does nothing. It only works as a dummy statement.
# in Python
def fun():
# Empty loop in Python
mutex = True
while (mutex == True) :
# Empty in if/else in Python
mutex = True
if (mutex == True) :