python function return nothing code example
Example 1: python do nothing
# To do nothing within a statement, use pass
good = True
if good:
pass
else:
print('This is not good')
Example 2: python return none
return None
# To do nothing within a statement, use pass
good = True
if good:
pass
else:
print('This is not good')
return None