FAQ: Hashes and Symbols - Becoming More Selective

This community-built FAQ covers the “Becoming More Selective” exercise from the lesson “Hashes and Symbols”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Learn Ruby

FAQs on the exercise Becoming More Selective

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

something in the code doesn’t make sense – Why did memento get a 3 rating when it’s one of the best movies of all time?

2 Likes

I’m confused why we have to put the colon before the symbol name when selecting by key. Even when we’re using the current standard to where the colon is after the name.

I was a little confused by the instructions for this lesson…it said to "Create a new variable, good_movies", but then after I put my code into the editor, it came back with an error that said “It looks like good_movies isn’t a hash.” I know how to make a hash just fine, but were the instructions supposed to say to make a variable, or was that a typo? I thought that a variable could only have one value, whereas a hash could have any number of key and value pairs. I was under the impression that hashes are thusly distinct from variables, but is that incorrect? Are hashes actually a subset of variables?
Thanks in advance :upside_down_face:

I found many small details that are misleading throughout all the exercises, I wonder if it is because it’s free content but it’s definitely not precise

it keeps asking if i created a variable called good movies but im confused.an someone explain it to me please

good_movies = movie_ratings.select { |name, grade| grade > 3}

puts good_movies