Which programming language is this?
prices = { apple: 1.2, pear: 0.8 }
prices.each do |fruit, price|
puts "#{fruit}: #{format('%.2f', price)}"
end
Answer: Ruby
A hash with
Play Programming Languages ▸
apple: symbol keys iterated by each do |fruit, price| is Ruby.