Skip to content

Commit abdd608

Browse files
committed
fixed a remnant of python2 not caught before
1 parent 6c9ee79 commit abdd608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slides_sources/source/exercises/comprehensions_lab.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Dictionary comprehensions
133133
'forth':'fanatical devotion',
134134
'fifth': None}
135135
>>> dict_comprehension = \
136-
{ k.upper(): weapon for k, weapon in dict_of_weapons.iteritems() if weapon}
136+
{ k.upper(): weapon for k, weapon in dict_of_weapons.items() if weapon}
137137
138138
What is the output of:
139139

0 commit comments

Comments
 (0)