"Data Structures" "Iterating Over Hashes" error



In the console it says

The Batman:Bruce Wayne
Superman:Clark Kent
Wonder Woman:Diana Prince
Freakazoid:Dexter Douglas
{"The Batman"=>"Bruce Wayne", "Superman"=>"Clark Kent", "Wonder Woman"=>"Diana Prince", "Freakazoid"=>"Dexter Douglas"}

and also this popup appears:


secret_identities = {
  "The Batman" => "Bruce Wayne",
  "Superman" => "Clark Kent",
  "Wonder Woman" => "Diana Prince",
  "Freakazoid" => "Dexter Douglas"
secret_identities.each{|f,n| puts "#{f}:#{n}"}


Your code looks fine. Please refresh and see.



I tried and the output is the same.


Try spacing things up or change variables. See below:

secret_identities.each { |x, y| puts "#{x}: #{y}" }


Once again, you code worked. :open_mouth:


Lol! But if you did as I suggested, it really should have worked.

Maybe there's something to using f and n in Ruby?