We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ad209 commit d13af82Copy full SHA for d13af82
2 files changed
doc/data/messages/d/dict-iter-missing-items/bad.py
@@ -0,0 +1,3 @@
1
+data = {'Paris': 2_165_423, 'New York City': 8_804_190, 'Tokyo': 13_988_129}
2
+for city, population in data: # [dict-iter-missing-items]
3
+ print(f"{city} has population {population}.")
doc/data/messages/d/dict-iter-missing-items/good.py
+for city, population in data.items():
0 commit comments