We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9ee79 commit abdd608Copy full SHA for abdd608
slides_sources/source/exercises/comprehensions_lab.rst
@@ -133,7 +133,7 @@ Dictionary comprehensions
133
'forth':'fanatical devotion',
134
'fifth': None}
135
>>> dict_comprehension = \
136
- { k.upper(): weapon for k, weapon in dict_of_weapons.iteritems() if weapon}
+ { k.upper(): weapon for k, weapon in dict_of_weapons.items() if weapon}
137
138
What is the output of:
139
0 commit comments