Help on 14. Becoming More Selective


#1

Guys I'm so confused, could you help me?

I'm trying to do 14 Becoming more selective and I don't know what to do?

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

good_movies = movie_ratings
good_movies.select {|n, r| r > 3}
{:primer=> 3.5, :the_matrix=> 5, :truman_show=> 4, :skyfall=> 4, :lion_king=> 3.5}

But, I keep getting the below error message?
It looks like good_movies includes memento, but it shouldn't.

Can anyone help?


#2

This line, just selects it correctly, but doesn't set the result equal to a variable. It isn't saved correctly.
At the end of your program good_movies is still equal to movie_ratings.


#4