← Back to archive

Stdle #3 · 2026-06-09

What does this log?

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

def f(val, log=[]):
log = log + [val]
return log
print(f(1))
print(f(2))
Scope
2 lines
4 attempts left

Answer & explanation