← Back to archive

Stdle #138 · iteration · 2026-10-22

What does this Ruby snippet output?

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

a = 1
b = 2
a, b = b, a
puts a
puts b
Iteration
2 lines
4 attempts left

Answer & explanation