Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 50 / 11444%
Collections31/35

Loop Dictionaries

Iterate over keys / values / items.

// dict — key → value · insertion-ordered · hashable keys · O(1) lookup'name''age''city''Asha'22'Pune'hash('name')bucket #4→ 'Asha'user = {'name': 'Asha', 'age': 22, 'city': 'Pune'}
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?