← Back to archive

Stdle #39 · classes · 2026-07-15

What does this Ruby snippet output?

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

def show(x:, y:)
puts "#{x}, #{y}"
end
opts = {x: 10, y: 20}
show(**opts)
Classes
4 attempts left

Answer & explanation