← Back to archive

Stdle #13 · classes · 2026-06-19

What does this Python snippet output?

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

class E:
def __bool__(self): return True
def __len__(self): return 0
print("truthy" if E() else "falsy")
Classes
4 attempts left

Answer & explanation