-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadd_cuisinetype.py
16 lines (13 loc) · 960 Bytes
/
add_cuisinetype.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CuisineType_array = {"American", "British", "Caribbean", "Chinese", "French", "Italian", "Japanese", "Kosher",
"Mediterranean", "Mexican"}
# apply lower case to CuisineType_array
# CuisineType_array = [CuisineType_array.lower() for CuisineType_array in CuisineType_array]
# removed from CuisineType_array
# "Asian" "Central Europe" "Eastern Europe" "Middle Eastern" "Nordic" "South American" "South East Asian"
# ask user to enter cuisine preference
inputCuisineType = input(
f"Invalid Response. Please enter choose a preferred cuisine from the following options below or type 'N' if none - \n{CuisineType_array}: ")
while (inputCuisineType != "N" and inputCuisineType != "n") and inputCuisineType not in CuisineType_array:
inputCuisineType = input(
f"Please enter choose a preferred cuisine from the following options below or type 'N' if none - \n{CuisineType_array}: ")
print("You have chosen: " + inputCuisineType)