Prompting: Redux!

I NEED HELP. PLEASE HELP

movies = {
:“Scott Pilgrim vs. the World” => 5,
}

puts “what movies you life?”
answer = gets.chomp

please help me I need help

What is your issue ?

It wont work…

That’s not very precise. Please provide the exercise you’re on, the code you made so far and the error you’re getting.

what do you mean…

movies = {
:“Scott Pilgrim vs. the World” => 5,
}

puts “what movies you life?”
answer = gets.chomp

Which exercise is it? What is your error?

lesson 4
what movies you life?

Prompting: Redux!

Is it? The 4/10?

ya it is in 4/10…

So, why is your code so short?

You should have at least 15 lines of code from the previous exercise.

Where is your case and all your when statements?

it came like that the lesson before it had the same.

No, to pass the previous lessons you needed a case and when statements.

Something which looks like this:

case choice
when "add"
puts "Added!"
when "update"
puts "Updated!"
when "display"
puts "Movies!"
when "delete"
puts "Deleted"
else
    puts "Error!"
end
2 Likes

It didn’t do that for me it had what I said

It still won’t work I got this

Did you create a variable called title?

And did you create a variable called title?

like what/ what variable?

Any variable. One that you create and call title.

movies = {
:“Scott Pilgrim vs. the World” => 5,
}

puts “what movies you life?”
answer = gets.chomp