Hey so I am confused as to why this isn’t working my code is as follows
secret_identities = {
"The Batman" => "Bruce Wayne",
"Superman" => "Clark Kent",
"Wonder Woman" => "Diana Prince",
"Freakazoid" => "Dexter Douglas"
}
secret_identities.each do |x, y|
puts "#{x} : #{y}"
end
error i get is
Oops, try again. It looks like you aren't printing each colon-separated key-value pair on its own line. Check the hint if you need help!
the interpreter says this
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"}
The error says thats its not being put on its own line but obviously is, so I’m confused. Can someone explain why this is not working thanks.