Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Hashes and Symbols

Iterating Over Hashes

We can also iterate over hashes using the .each method. For example, we could do

my_hash.each do |key, value| puts my_hash[] end

This will print out a list of keys and values from my_hash, each on its own line.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.