Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. import random
  2. import time
  3.  
  4. answers = ["It is certain",
  5. "It is decidedly so",
  6. "Without a doubt",
  7. "Yes definitely",
  8. "You may rely on it",
  9. "As I see it, yes",
  10. "Most likely",
  11. "Outlook good",
  12. "Yes",
  13. "Signs point to yes",
  14. "Reply hazy try again",
  15. "Ask again later",
  16. "Better not tell you now",
  17. "Cannot predict now",
  18. "Concentrate and ask again",
  19. "Don't count on it",
  20. "My reply is no",
  21. "My sources say no",
  22. "Outlook not so good",
  23. "Very doubtful"]
  24.  
  25. random.seed()
  26. play = 'Y'
  27.  
  28. while play.upper() == 'Y':
  29. print("Ask me a question that can be answered with a \"Yes\" or \"No\".")
  30. question = input("Your question: ")
  31. print("Patience...dipping my hands into the ether of probabilities...")
  32. time.sleep(1)
  33. print("My answer: " + answers[random.randint(0,19)])
  34. play = input("More?\nEnter Y to continue and press ENTER to exit")
  35. print("\n")
Add Comment
Please, Sign In to add comment