More Methods, More Solutions


#1


https://www.codecademy.com/courses/ruby-beginner-en-Qn7Qw/2/5?curriculum_id=5059f8619189a5000201fbcb

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
}
# Add your code below!
movie_ratings.each_value { |k| puts k, " " }


#2

Instructions

Go ahead and print out just the titles of our movies using puts.

The titles are the keys in this hash.


#3

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