Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- while True:
- q = input("\nAsk the magic 8ball a yes or no question...\n> ")
- answers = [
- "Yes",
- "No",
- "Ask again later",
- "Most likely",
- "Probably not",
- "It is unknown",
- "Definitely",
- "Cannot predict now",
- "Without a doubt",
- "You may rely on it"
- ]
- print(random.choice(answers), "\n")
- r = input("Ask another question? [y/n]\n> ").lower()
- if r not in ["y", "yes"]:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement