In [1]:
def test():
print('function is called')
return True
In [2]:
print(True and test())
In [3]:
print(False and test())
In [4]:
print(True or test())
In [5]:
print(False or test())