# each lets you iterate over every element in an array and do something to it. month_a = %w[ nil jan feb mar apr may jun jul aug sep oct nov dec ] month_a.each { |e| print e.capitalize + " " }