Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I am Sara, your personal bot.")
- users_name = input("What is your name? ")
- import time
- time.sleep(.5) # Wait for 1/2 second
- print("Hi, " + users_name + ", I like you, I'll bet we can be very close")
- time.sleep(1.3) # Wait for 1.3 seconds
- print("Say," + users_name + ", Help me check my addition skills, please give me some numbers to add, ok?")
- time.sleep(.5) # Wait for 1/2 second
- input1 = input("What's the first number?> ")
- time.sleep(1) # Wait for 1 second
- input2 = input("What's the 2nd number?> ")
- result001 = input1 + input2
- print(result001)
- time.sleep(3) # Wait for 3 seconds
- print("Hmmm, that's not the result we were expecting, let me try a different algorithm")
- time.sleep(1.5) # Wait for 1.5 second
- first_number = int(input1)
- second_number = int(input2)
- result002 = first_number + second_number
- output = str(result002)
- print(input1 + " + " + input2 + " = " + output)
- time.sleep(2) # Wait for 2 second
- print("Thanks very much " + users_name + ", you are very helpful!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement