← Back to archive

Stdle #141 · strings · 2026-10-25

What does this Ruby snippet output?

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

puts "%s" % "hello"
puts "%p" % "hello"
puts "%s" % nil
puts "%p" % nil
Strings
4 lines
4 attempts left

Answer & explanation