Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. phrase = input("Hi do you like cats or dogs > ")
  2. if phrase == "cats" or phrase =="cat" or phrase=="Cats" or phrase=="CATS":
  3. print("Me too")
  4. phrase = input ("Do you have a cat? > ")
  5. if phrase == "yes" or phrase == "Yes":
  6. print("Lucky you!")
  7. else:
  8. print("Never mind")
  9. elif phrase == "dogs" or phrase =="Dogs" or phrase =="DOGS" or phrase=="dog":
  10. print("That's super")
  11. else:
  12. print("sorry I don't understand this " + "'" + phrase + "'")
  13. print("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement