Skip to content

Commit f19a015

Browse files
committed
Chapters 5-8 consistent with book.
1 parent 744fb92 commit f19a015

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

chapter_05/test_amusement_park.py

-16
This file was deleted.

chapter_06/user.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
user_0 = {'username': 'efermi',
2+
'first': 'enrico',
3+
'last': 'fermi',
4+
}
5+
6+
for key, value in user_0.items():
7+
print("\nKey: " + key)
8+
print("Value: " + value)

chapter_07/counting.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
current_number = 1
2+
while current_number <= 5:
3+
print(current_number)
4+
current_number += 1
File renamed without changes.

chapter_08/making_pizzas.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import pizza as p
2+
3+
p.make_pizza(16, 'pepperoni')
4+
p.make_pizza(12, 'mushrooms', 'green peppers', 'extra cheese')

0 commit comments

Comments
 (0)