Secret Identity problem. Am I suppose to put variables in the | |?


(ruby):7: syntax error, unexpected $end, expecting keyword_end

Replace this line with your code. 
secret_identities = {
  "The Batman" => "Bruce Wayne",
  "Superman" => "Clark Kent",
  "Wonder Woman" => "Diana Prince",
  "Freakazoid" => "Dexter Douglas"
secret_identities.each do |v,x| puts "v: x"


Well, you have to somehow enclose the block of each. You can use do ... end or braces.

And are you really sure that you want to print to the console "v: x"? I guess that you should be more interested in printing out v and x values :slight_smile:

Take a look here to see both methods ->

And always remember about documentation, you can find there a lot of information that will save your time ->


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