Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __author__ = 'john'
- import random
- import time
- x = True
- while x:
- text = input("ask the magic 8 ball anything:\n")
- print("thinking...")
- time.sleep(4)
- answerint = random.randint(0,7)
- answer = ["it is certain", "it is decidedly so", "without a doubt", "yes definitely", "you may rely on it", "as i see it, yes", "most likely", "outlook good"][answerint]
- print(answer)
- re = input("would you like to ask another question? yes or no:")
- if re == "no":
- print("thanks for playing")
- x = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement