EasyOutput prediction
Short-circuit evaluation with and
What does this code print?
def side_effect():
print("called")
return True
result = False and side_effect()
print(result)← → arrow keys to navigate
Sign in to save your progress.
What does this code print?
def side_effect():
print("called")
return True
result = False and side_effect()
print(result)← → arrow keys to navigate
Sign in to save your progress.