-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
37 lines (29 loc) · 913 Bytes
/
test.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
#!/Applications/IDLE.app
def balloon(name):
print ("I am", name, "and I love Baloons")
ErosOut(name)
def cake(name):
print ("I am", name, "and I hate cakes")
ErosOut(name)
def ErosOut(name):
if name == 'eros':
print ('yeh', name, 'bosen gw liat muka lu')
else:
print ('untung bukan eros. jangan kasitau eros ya.')
def modulecall(modulename, name):
if modulename == 'balloon':
balloon(name)
else:
if modulename == 'cake':
cake(name)
else:
modulename = input ("please pick btwn cake / balloon ")
modulecall(modulename, name)
print ('cake and balloons module is ready to deploy')
print ('have fun')
#input ("please press enter ")
def start():
name = input("what is your name? ")
modulename = input ("please pick btwn cake / balloon ")
modulecall(modulename, name)
start()