Stuck on 3/10


#1

I keep getting: Oops, try again. It looks like your case statement doesn't puts 'Error!' when it gets unexpected input.
My code looks like this:
movies = {"The Princess Bride" => 10}
puts "What's your favorite movie?"

choice = case
when "add"
puts "Added!"
when "update"
puts "Updated!"
when "display"
puts "Displayed!"
when "delete"
puts "Deleted!"
else
puts "Error!"
end
What am I doing wrong, am I adding or forgetting something in my code?


#2

Never mind I found My error.


#3

Can you explain your previous error?