Skip to content

Commit 4de2690

Browse files
authored
Final QA (#633)
1 parent c628fcb commit 4de2690

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

python-for-loop/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Python for Loops: The Pythonic Way
22

3-
This folder provides the code examples for the Real Python tutorial [Python for Loops: The Pythonic Way](https://realpython.com/python-for-loop-update/).
3+
This folder provides the code examples for the Real Python tutorial [Python for Loops: The Pythonic Way](https://realpython.com/python-for-loop/).

python-for-loop/chained_lists.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from itertools import chain
2+
3+
first = [7, 6, 1]
4+
second = [4, 1]
5+
third = [8, 0, 6]
6+
7+
for value in chain(first, second, third):
8+
print(value**2)

python-for-loop/dictionaries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
for team in teams.values():
2626
print(team)
2727

28-
for city, team in teams.items():
29-
print(city, "->", team)
28+
for place, team in teams.items():
29+
print(place, "->", team)

0 commit comments

Comments
 (0)