Advertisement
BretC505

Untitled

Dec 8th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. print("Hi, I am Sara, your personal bot.")
  2. users_name = input("What is your name? ")
  3. import time
  4. time.sleep(.5) # Wait for 1/2 second
  5. print("Hi, " + users_name + ", I like you, I'll bet we can be very close")
  6. time.sleep(1.3) # Wait for 1.3 seconds
  7. print("Say," + users_name + ", Help me check my addition skills, please give me some numbers to add, ok?")
  8. time.sleep(.5) # Wait for 1/2 second
  9. input1 = input("What's the first number?> ")
  10. time.sleep(1) # Wait for 1 second
  11. input2 = input("What's the 2nd number?> ")
  12. result001 = input1 + input2
  13. print(result001)
  14. time.sleep(3) # Wait for 3 seconds
  15. print("Hmmm, that's not the result we were expecting, let me try a different algorithm")
  16. time.sleep(1.5) # Wait for 1.5 second
  17. first_number = int(input1)
  18. second_number = int(input2)
  19. result002 = first_number + second_number
  20. output = str(result002)
  21. print(input1 + " + " + input2 + " = " + output)
  22. time.sleep(2) # Wait for 2 second
  23. print("Thanks very much " + users_name + ", you are very helpful!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement