Great! Let’s build out each part of the case, one step at a time. We’ll start with the “add” branch.



Inside your when "add" block, remove the puts "Added!" statement.

In its place, prompt the user for a movie title. Save the result in a new variable called title. (Your code already has an example of how to do this!)

Next, prompt the user for the rating of the movie. Save that in a new variable called rating.

Add that movie/rating pair to the movies hash and puts a message indicating the pair was added. (No need for to_sym or to_i just yet!)

Check the hint if you need help!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?