More Methods, More Solutions


#1



Oops, try again. It looks like you didn't print out memento using puts.


movie_ratings = {
  memento: 3,
  primer: 3.5,
  the_matrix: 3,
  truman_show: 4,
  red_dawn: 1.5,
  skyfall: 4,
  alex_cross: 2,
  uhf: 1,
  lion_king: 3.5
}


#2

Please Help As Much as you can


#3

Hi!

So, the message shows that you are yet to print using puts. From the explanation in the lesson, below,

my_hash.each_value { |v| print v, " " }

But in this instance, your hash is movie_ratings, while you are printing each_key (memento, primer, the_matrix, truman_show, red_dawn, skyfall, alex_cross, uhf and lion_king) rather than the values in the pair. You should then complete as in the example, but with the puts method { |v| puts v, " " }

I hope this helps! :slight_smile:


#4

im past it but thanks for trying to help


#5

Okay, that's fine.

Sorry the help came in late. :wink:


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.