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.

Short-circuit evaluation with and - Python Control Flow Quiz | Unnested