-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCOMPLETED_Input_Looping_if_str.func
33 lines (31 loc) · 1.09 KB
/
COMPLETED_Input_Looping_if_str.func
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
while True:
first_name = input("What is your first name? ")
last_name = input("What is your last name? ")
age = input("What is your age? ")
while True:
status = input("Have you been here before?")
if status.lower() == "yes":
print("Thank you have a seat")
exit()
elif status.lower() == "no":
print("Please fill out New Patient Form")
break
else:
print("Yes or No answer only")
date_of_birth = input("What is your Date of Birth? (DD/MM/YYYY): ")
address = input("What is your current residential address?: ")
print("***Are these details correct?***")
print("Name: ", first_name, last_name)
print("Age: ", age)
print("Date of Birth: ", date_of_birth)
print("Address: ", address)
while True:
answer = input("Yes/No?: ")
if answer.lower() == "no":
break
elif answer.lower() == "yes":
print("Thank you. A doctor will be with you shortly.")
exit()
else:
print("Yes or No answers only.")
continue