Ruby arrays keep ordered values that can be indexed, counted, and combined.

Arrays

arrays.rb
scores = 
first_score = scores[0]
total = scores.sum
average = total / scores.length

puts "first=#{first_score}"
puts "average=#{average}"
scores = 
first_score = scores[0]
total = scores.sum
average = total / scores.length

puts "first=#{first_score}"
puts "average=#{average}"
scores = 
first_score = scores[0]
total = scores.sum
average = total / scores.length

puts "first=#{first_score}"
puts "average=#{average}"
array An array stores values in order, and indexing starts at `0`.