Jonathan Hsu
1 min readOct 20, 2019

Hi Kiron, that first example is iterating over a list, not a dictionary. It’s there to show what a “traditional” for loop would look like in Python by iterating over a range that is used to reference each index.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response