forked from mli43/Eilaj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheilajIntro.py
28 lines (28 loc) · 1.12 KB
/
eilajIntro.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
def intro(questions, answers):
print('Hello! I am Lily, your special representative from red cross. This is a fun game to get a sense of how you are feeling,')
print('How was your trip:\nA. Good\nB. Bad\nC. Okay')
x = input('Type letter: ')
while True:
if x.find('A') != -1 or x.find('a') != -1:
answers.append('Good')
break
elif x.find('B') != -1 or x.find('b') != -1:
answers.append('Bad')
break
elif x.find('C') != -1 or x.find('c') != -1:
answers.append('Okay')
break
else:
print("Please choose between A, B, and C.")
x = input('Type letter: ')
questions.append('How was your trip?')
print('Are you alone?\nA. Yes\nB. No')
x = input('Type letter: ')
if x.find('A') != -1 or x.find('a') != -1:
answers.append('Yes')
elif x.find('B') != -1 or x.find('b') != -1:
answers.append('No')
elif x.upper() not in "AB":
print("Please choose between A and B.")
x = input('Type letter: ')
questions.append('Are you alone?')