Skip to content

Commit d13af82

Browse files
matusvaloPierre-Sassoulas
authored andcommitted
Added dict-iter-missing-items message example
1 parent 88ad209 commit d13af82

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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}.")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.items():
3+
print(f"{city} has population {population}.")

0 commit comments

Comments
 (0)