16/16 Iterating Over A Hash



Oops, it looks like your code didn't print anything to the console.

lunch_order = {
  "Ryan" => "wonton soup",
  "Eric" => "hamburger",
  "Jimmy" => "sandwich",
  "Sasha" => "salad",
  "Cole" => "taco"
lunch_order.each do |Name, Order| 
    print "#{Order}"

Not at all sure what is wrong here, I am literally going back to past notes.


Hi this line

lunch_order.each do |Name, Order|

remove the uppercase N and O to name and order then you should change the print with puts


Just a heads up to anyone else on this one.

OP was using an incorrect output command.
"puts" is requested to be used, not print.