Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- from random import randint
- replies =["Yes","No","Possibly", "Ask again later", "IDK"]
- def question():
- print "What is your question?"
- question = raw_input()
- print "Thinking"
- time.sleep(3)
- print replies[randint(0,4)]
- end()
- def end():
- print "Thanks for playing! Do you want to try again?"
- user_reply = raw_input()
- if user_reply == "yes":
- question()
- print "Welcome to the magic 8-ball"
- question()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement