← Back to archive

Stdle #55 · comparisons · 2026-07-31

What does this Python snippet output?

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

words = ['bee', 'ant', 'cat', 'dog']
print(sorted(words, key=len))
Comparisons
4 attempts left

Answer & explanation