Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phrase = input("Talk to me> ")
- if phrase == "hi" or phrase == "hey" or phrase == "gday" or phrase == "Hi there" or phrase == "hi there":
- print("Hi there!")
- users_name = input("Whats is your name? ")
- print("Hi " + users_name + ", nice to meet you.")
- print("My names Marvin!")
- elif phrase == "whats your name" or "whats your name?":
- print("Marvin...")
- print("I'd like to get to know you")
- response = input("Do you mind if I ask you some questions? ")
- if response == "no" or response == "No":
- print("Great! Lets get started")
- hair = input("what color is your hair " + users_name + "? ")
- eyes = input("And what color are your eyes? ")
- height = input("Nearly there, how tall are you in Cm? ")
- weight = input("And last question, " + users_name + " what weight are you in Kg ")
- tall = int(height)
- heavy = int(weight)
- print("OK " + users_name + ", So to summarise, you weigh " + weight + " Kgs, have " + eyes + " eyes, " + hair + " hair, and are " + height + "Cm tall")
- print("Thanks for sharing, I have to go now!")
- print("Bye")
- else:
- print("Ok, Cya!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement