When a range is used as an iterator, each value in the sequence is returned.
# So you can use a range to do things like create an array of digits: (1..9).to_a # => [1, 2, 3, 4, 5, 6, 7, 8, 9]