forked from mli43/Eilaj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealth_center.py
65 lines (64 loc) · 2.23 KB
/
health_center.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## Health Center
def health_center(questions, answers):
print("Hello! My name is Aliya and I am the nurse at this station! Do you have any physical injuries?")
question1 = "Do you have any physical injuries?"
questions.append(question1)
print("A: Yes\nB: No")
while True:
user = input("Please select A or B: ")
if user.upper() not in "AB":
continue
elif user.upper() == "A":
answers.append("Yes")
break
elif user.upper() == "B":
answers.append("No")
break
print("Are you able to fall asleep at night?")
question2 = "Are you able to fall asleep at night?"
questions.append(question2)
print("A: Yes\nB: No\nC: Mostly")
while True:
user2 = input("Please select A, B, or C: ")
if user2.upper() not in "ABC":
continue
elif user2.upper() == "A":
answers.append("Yes")
break
elif user2.upper() == "B":
answers.append("No")
break
elif user2.upper() == "C":
answers.append("Mostly")
break
print("When was the last time you were here?")
question3 = "When was the last time you were here?"
questions.append(question3)
print("A: Never\nB: Recently\nC: A while ago")
while True:
user3 = input("Please choose A, B, or C: ")
if user3.upper() not in "ABC":
continue
elif user3.upper() == "A":
answers.append("Never")
break
elif user3.upper() == "B":
answers.append("Recently")
break
elif user3.upper() == "C":
answers.append("A while ago")
break
print("Would you like to talk to anyone about anything?")
question3 = "Would you like to talk to anyone about anything?"
questions.append(question3)
print("A: Yes\nB: No")
while True:
user4 = input("Please choose A or B: ")
if user4.upper() not in "AB":
continue
elif user4.upper() == "A":
answers.append("Yes")
break
elif user4.upper() == "B":
answers.append("No")
break