-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.3.py
More file actions
43 lines (26 loc) · 782 Bytes
/
test.3.py
File metadata and controls
43 lines (26 loc) · 782 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This uses a if food= then the response responds with x
# Importing Time
import time
def fave_food():
print("What is your favorite food?")
food = input()
if food == "pizza":
response = "Mmm, Italian!"
if food == "wings":
response = "Mmm, lemmon pepper!"
elif food == "veggies":
response = "So healthy!"
else:
response = "Meh, not one of my favorites."
print('I like, ' + food)
# Another 5 Seccond wait
time.sleep(3)
return(response)
opinion = fave_food()
# Prints response to anwser
print(opinion)
# Another 5 Seccond wait
time.sleep(5)
# End of command script
print("The function has run. sNothing has been printed. It is now finished.")
#done