Advertisement
gbruce

Untitled

Feb 9th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. phrase = input("Talk to me> ")
  2. if phrase == "hi" or phrase == "hey" or phrase == "gday" or phrase == "Hi there" or phrase == "hi there":
  3. print("Hi there!")
  4. users_name = input("Whats is your name? ")
  5. print("Hi " + users_name + ", nice to meet you.")
  6. print("My names Marvin!")
  7. elif phrase == "whats your name" or "whats your name?":
  8. print("Marvin...")
  9. print("I'd like to get to know you")
  10. response = input("Do you mind if I ask you some questions? ")
  11.  
  12. if response == "no" or response == "No":
  13. print("Great! Lets get started")
  14. hair = input("what color is your hair " + users_name + "? ")
  15. eyes = input("And what color are your eyes? ")
  16. height = input("Nearly there, how tall are you in Cm? ")
  17. weight = input("And last question, " + users_name + " what weight are you in Kg ")
  18. tall = int(height)
  19. heavy = int(weight)
  20. print("OK " + users_name + ", So to summarise, you weigh " + weight + " Kgs, have " + eyes + " eyes, " + hair + " hair, and are " + height + "Cm tall")
  21. print("Thanks for sharing, I have to go now!")
  22. print("Bye")
  23. else:
  24. print("Ok, Cya!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement