forked from mli43/Eilaj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinal.py
55 lines (53 loc) · 1.67 KB
/
final.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
from eilaj import*
from eilajIntro import*
from health_center import health_center
from food_center import*
questions = []
answers = []
intro(questions,answers)
t = playground = healthCenter = foodCenter = 0
print('Here is a map of the camp. You are able to visit the playground, the health center, or the cafeteria.')
while t < 3:
print('Where would you like to go?: \nA. Playground \nB. Health Center\nC. Cafeteria')
x = input('Pick a letter: ')
if playground == 0 and x.upper() == "A":
main(questions, answers)
playground += 1
t+=1
elif healthCenter == 0 and x.upper() == "B":
health_center(questions, answers)
healthCenter += 1
t+=1
elif foodCenter == 0 and x.upper() == "C":
food_center(questions, answers)
foodCenter += 1
t+=1
#elif x.find('a') == -1 and x.find('ab') == -1 and x.find('c') == -1:
elif x.upper() not in "ABC":
print('Please choose between A, B, and C')
else:
print('You have already gone there.')
while 1==1:
print('Thank you so much for hanging out today!! Do you have a code')
x = input('Yes or No: ')
if x.find('Yes') != -1:
print('under construction')
break
elif x.find('No') != -1:
print('Continue to meet with therapist')
break
else:
print('Incorrect response')
print(questions)
print(answers)
#Write into file
with open('therapy.txt', 'w') as f:
n = 1
m = 1
for question in questions:
f.write(str(n)+")"+question+"\n")
n+=1
f.write("\n")
for answer in answers:
f.write(str(m)+")"+answer+"\n")
m+=1