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.
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.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
Top writer with 2.5M+ views. https://medium.com/@jhsu98/membership