$ ./guess_the_languageProgramming Languages
Programming Languages · medium · #554

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 apple: symbol keys iterated by each do |fruit, price| is Ruby.
Play Programming Languages ▸