forked from CSUMB-SP17-CST438/lecture15-pcottle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
39 lines (30 loc) · 834 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Alright lets make a pizza!
from __future__ import print_function
def getCheese():
return 'A bit of Mozzarella cheese'
def getSauce():
return 'some basic Marinara sauce'
def getIngredients():
return [
getCheese(),
getSauce()
]
def printPizza():
ingredients = getIngredients()
print("Here is our pizza! It has %d ingredient(s)" % (len(ingredients)))
print("\n".join(
[str(num + 1) + ': ' + i for (num, i) in enumerate(ingredients)]
))
print('''
____ __ ____ ____ __ ____ __ _ _ ____
( _ \( )(__ )(__ ) / _\ (_ _)( )( \/ )( __)
) __/ )( / _/ / _/ / \ )( )( / \/ \ ) _)
(__) (__)(____)(____)\_/\_/ (__) (__)\_)(_/(____)
''')
printPizza()
print('''
__ __ __
\ \/ /_ ____ _ / /
\ / // / ' \/_/
/_/\_,_/_/_/_(_)
''')