Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phrase = input("Hi do you like cats or dogs > ")
- if phrase == "cats" or phrase =="cat" or phrase=="Cats" or phrase=="CATS":
- print("Me too")
- phrase = input ("Do you have a cat? > ")
- if phrase == "yes" or phrase == "Yes":
- print("Lucky you!")
- else:
- print("Never mind")
- elif phrase == "dogs" or phrase =="Dogs" or phrase =="DOGS" or phrase=="dog":
- print("That's super")
- else:
- print("sorry I don't understand this " + "'" + phrase + "'")
- print("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement