I’m going through Codecademy’s tutorial for Ruby, and I’ve been asked to do the following:
Use .each to iterate over the secret_identities hash. Use puts to print each key-value pair, separated by a colon and a space (:), to the console.
The hash was created to start, so I’m just going to skip right to the code that I put in.
secret_identities.each { | hero, identity | puts "{#hero}: {#idenity}" }
Then I get the following error:
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!
So what exactly do I need to do to make it compliant to the code?
Typo?
#idenityshould be#identity?