What is the execution flow when there are multiple statements with multiple or operator to be checked in a if condition.
def fun1():
# heavy computation
# returns True/False
#similarly
def fun2(); # heavy computation returns True/False
def fun3(); # heavy computation returns True/False
if fun1() or fun2() or fun3():
#execute
Does python executes one function after other (i.e. fun1, fun2, fun3) sequentially? Will the execution stops once one of the function returns true and enters the if statement?
I am trying get the optimized code version for the above condition.