Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mport random
- def eight_ball():
- print "Ask the magic 8ball a question"
- answer = raw_input()
- print random.choice(["It is certain","it is decidedly so","Yes","Most likely","maybe","Ask me again later","no","Do not count on it","My sources say no"])
- eight_ball()
- num = 1
- while num < 2:
- print "Do you want to ask another question? type 'yes' or 'no'."
- answer1 = raw_input()
- if answer1 == "yes":
- eight_ball()
- num = num + 1
- elif answer1 == "no":
- print "See ya"
- num = num + 1
- else:
- "That wasn't an option"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement