No sense (12. Rocket has landed)


#1


I searched similar topics, this task is simple yet got stuck & can't figure out why.
Using same code that worked on previous exercise, made the changes as suggested on the example,
yet I get an error, tried to put ' instead of ", checked spaces, commas, nothing worked. Anyone else facing same problem or to help? Thanks.


https://www.codecademy.com/en/courses/ruby-beginner-en-Qn7Qw/2/2?curriculum_id=5059f8619189a5000201fbcb


(ruby):1: syntax error, unexpected ':', expecting tASSOC
"Benny Hills": "comedy",
^
(ruby):1: syntax error, unexpected ',', expecting $end
"Benny Hills": "comedy",
^


movies = {
    "Benny Hills": "comedy", 
    "Tomb Raider Lara Croft": "action" 
}


#2

Solved it. The problem was the " on the keys (titles) , as long you remove , it works. Simple yet weird.


#3

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