Skip to content

Commit 6c84df7

Browse files
committed
Fix code style issues with Black
1 parent ac67a5a commit 6c84df7

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

2_intermediate/chapter10/solutions/address.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
["Jeremy", 10, "45 Pancake Road"],
1919
["Nicey", 18, "111 Cupcake Street"],
2020
["Hawthorne", 15, "19 Sinister Avenue"],
21-
["Nilah", 14, "Banks of the Nile River"]
21+
["Nilah", 14, "Banks of the Nile River"],
2222
]
2323

2424
# 2nd person
@@ -27,6 +27,4 @@
2727

2828
# Display the entire list.
2929
for contact in contacts:
30-
print(
31-
contact[0] + " (%d): " % contact[1] + contact[2]
32-
)
30+
print(contact[0] + " (%d): " % contact[1] + contact[2])

2_intermediate/chapter10/solutions/random_grid.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
for row in range(4):
4646
grid.append([])
4747
for col in range(cols):
48-
grid[row].append(
49-
"*" if (col % 2 == 0) else "_"
50-
)
48+
grid[row].append("*" if (col % 2 == 0) else "_")
5149

5250
# Display the grid without knowing the size beforehand.
5351
for row in range(len(grid)):

2_intermediate/chapter9/solutions/word.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"banana": "sustenance for cute humans",
2222
"neha": "a really strange human",
2323
"phone": "magic communication device",
24-
"cookie": "heaven on Earth"
24+
"cookie": "heaven on Earth",
2525
}
2626

2727
# Show definition

0 commit comments

Comments
 (0)