← Back to archive

Stdle #64 · scope · 2026-08-09

What does this Python snippet output?

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

def f(a, b=len("ab")):
return a + b
print(f(10))
print(f(10, 5))
Scope
2 lines
4 attempts left

Answer & explanation