Can someone help me?


#1


https://www.codecademy.com/en/courses/ruby-beginner-en-0i8v1/0/4?curriculum_id=5059f8619189a5000201fbcb


My code below

movies = { "titanic" => 7,
"pokemon" => 8,
"digimo" => 9
}

puts"Choose one of these\n\t"
puts"Hit add if you wanna 'add' a movie\t\n"
puts"if you wanna delete a movie hit 'delete'\t\n"
puts" Wanna update rating?\t\n"
puts"wanna display the movies? If so hit display"

choice = gets.downcase

choice = gets.chomp.downcase
case choice
when 'add'
puts "What movie do you want to add?"
title = gets.chomp
if movies[title].nil?
puts "What's the rating? (Type a number 0 to 4.)"
rating = gets.chomp
movies[title] = rating
puts "#{title} has been added with a rating of #{rating}."
else
puts "That movie already exists! Its rating is #{movies[title}."
end


Replace this line with your code.


#2

@crimcode,
You are missing an end keyword at the end of your case statement