← Back to archive

Stdle #62 · modern · 2026-08-07

What does this Python snippet output?

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

def deco(fn):
print("decorating")
return fn
@deco
def g():
print("calling")
print("defined")
g()
Modern
3 lines
4 attempts left

Answer & explanation