Advertisement
Guest User

Untitled

a guest
Apr 6th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.61 KB | None | 0 0
  1. category_1 = "animals"
  2. category_2 = "food"
  3. category_3 = "outside_sports"
  4.  
  5. list_of_possible_gifts_for_category_1 = ['pony','cat','dog','moose']
  6. list_of_possible_gifts_for_category_2 = ['pesto','pepperoni','chocolate','pasta', 'tomato sauce']
  7. list_of_possible_gifts_for_category_3 = ['bike','skateboard','stopwatch','training shirt', 'video on skateboard tricks']
  8.  
  9. print("="*70)
  10. print("I am going to help you choose a perfect gift.")
  11. print("I am going to ask you questions which will help me select from my lists.")
  12. print("="*70)
  13.  
  14. question1 = raw_input("Please enter your first question here ")
  15. if question1 == "y" or question1 == "Y" or question1 == "yes":
  16.     print("Now I know what they might like. I can either suggest a gift or ask more questions to narrow it down.")
  17. else:
  18.     print("Ok. So I know you might not like something from " + category_1 + ".  I will ask another question.")  
  19.    
  20. question2 = raw_input("Please enter your second question here ")
  21. if question2 == "y" or question2 == "Y" or question2 == "yes":
  22.     print("Now I know what they might like. I can either suggest a gift or ask more questions to narrow it down.")
  23. else:
  24.     print("Ok. So I know you might not like something from " + category_2 + ".  I will ask another question.")  
  25.    
  26. question3 = raw_input("Please enter your third question here ")
  27. if question3 == "y" or question3 == "Y" or question3 == "yes":
  28.     print("Now I know what they might like. I can either suggest a gift or ask more questions to narrow it down.")
  29. else:
  30.     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