Short-circuit evaluation: Difference between revisions

m
Fixed typo
(No longer a draft task.)
m (Fixed typo)
Line 13:
 
'''Task Description'''<br>
The task is to create two functions named a and b, that take and return the same boolean value. The functions should also print their name whenever they are called. calculateCalculate and assign the values of the following equations to a variable in such a way that function b is only called when necessary:
x = a(i) and b(j)
y = a(i) or b(j)
Anonymous user