← Back to archive

Stdle #145 · strings · 2026-10-29

What does this Ruby snippet output?

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

puts format("Hello, %{name}!", name: "World")
puts "%{x} + %{y} = %{z}" % {x: 1, y: 2, z: 3}
Strings
2 lines
4 attempts left

Answer & explanation