Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- category_1 = "animals"
- category_2 = "food"
- category_3 = "outside_sports"
- list_of_possible_gifts_for_category_1 = ['pony','cat','dog','moose']
- list_of_possible_gifts_for_category_2 = ['pesto','pepperoni','chocolate','pasta', 'tomato sauce']
- list_of_possible_gifts_for_category_3 = ['bike','skateboard','stopwatch','training shirt', 'video on skateboard tricks']
- print("="*70)
- print("I am going to help you choose a perfect gift.")
- print("I am going to ask you questions which will help me select from my lists.")
- print("="*70)
- question1 = raw_input("Please enter your first question here ")
- if question1 == "y" or question1 == "Y" or question1 == "yes":
- print("Now I know what they might like. I can either suggest a gift or ask more questions to narrow it down.")
- else:
- print("Ok. So I know you might not like something from " + category_1 + ". I will ask another question.")
- question2 = raw_input("Please enter your second question here ")
- if question2 == "y" or question2 == "Y" or question2 == "yes":
- print("Now I know what they might like. I can either suggest a gift or ask more questions to narrow it down.")
- else:
- print("Ok. So I know you might not like something from " + category_2 + ". I will ask another question.")
- question3 = raw_input("Please enter your third question here ")
- if question3 == "y" or question3 == "Y" or question3 == "yes":
- print("Now I know what they might like. I can either suggest a gift or ask more questions to narrow it down.")
- else:
- print("Ok. So I know you might not like something from " + category_3+ ". I will ask another question.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement