The code check isn't working


Here's the interaction:

What is your choice? add

Here's the error message:
Oops, try again. It looks like your case statement doesn't puts 'Added!' when choice == 'add'.

movies = {
    Groundhog_Day: 10

print "What is your choice?"
choice = gets.chomp

case choice
when "add"
    puts "Added!"
when "update"
    puts "Updated!"
when "display"
    puts "Movies!"
when "delete"
    puts "Deleted!"
    puts "Error!"


Okay, this was pretty dumb. It was rejecting the code because I used "print" instead of "puts".

First, why should that be an error?
Second, the error message should be appropriate.


The exercises can be very finicky. Of course, so is actual; programming...


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.