Skip to content

Commit 1b3de4f

Browse files
committed
PCC Ch. 8 work update
1 parent a0ddcba commit 1b3de4f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

making_pizzas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import pizza
2+
3+
pizza.make_pizza(16, 'pepperoni')

pizza.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def make_pizza(size, *toppings):
2+
"""Summarize the pizza we are about to make."""
3+
print(f"Making a {size}-inch pizza with the folling toppings:")
4+
for topping in toppings:
5+
print(f"- {topping}")

0 commit comments

Comments
 (0)