Stdle #159 · iteration · 2026-11-12
What does puts [1, 2, 3, 4, 5, 6].count { |x| x.even? } output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
puts [1, 2, 3, 4, 5, 6].count { |x| x.even? }Iteration