← Back to archive

Stdle #172 · scope · 2026-11-25

What does this Python snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

x = "L"
def f():
def g():
return x
x = "E"
return g()
print(f())
Scope
4 attempts left

Answer & explanation