-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex19.py
More file actions
25 lines (15 loc) · 666 Bytes
/
ex19.py
File metadata and controls
25 lines (15 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
def pizzas_and_burgers(pizzas_count, burgers_count):
print "You have %d pizzass!" % pizzas_count
print "You have %d burgers!" % burgers_count
print "Man that's enough for a party!"
print "Get a blanket.\n"
print "We can just give the function numbers directly:"
pizzas_and_burgers(20, 30)
print "OR, we can use variables from our script:"
number_of_pizzas = 10
number_of_burgers = 50
pizzas_and_burgers(number_of_pizzas, number_of_burgers)
print "We can even do math inside too:"
pizzas_and_burgers(10 + 20, 5 + 6)
print "And we can combine the two, variables and math:"
pizzas_and_burgers(number_of_pizzas + 100, number_of_burgers + 1000)