Prompting: Redux!


#1

I NEED HELP. PLEASE HELP

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

puts "what movies you life?"
answer = gets.chomp


#2

please help me I need help


#3

What is your issue ?


#4

It wont work...........


#5

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


#6

what do you mean..............


#7

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

puts "what movies you life?"
answer = gets.chomp


#8

Which exercise is it? What is your error?


#9

lesson 4
what movies you life?


#10

Prompting: Redux!

Is it? The 4/10?


#11

ya it is in 4/10......................


#12

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?


#13

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


#14

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

#15

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


#16

It still won't work I got this

Did you create a variable called title?


#17

And did you create a variable called title?


#18

like what/ what variable?


#19

Any variable. One that you create and call title.


#20

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

puts "what movies you life?"
answer = gets.chomp