Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def main ():
- input("Enter your question!: ")
- EightBall = ["Yes", "No", "Try Again", "I'm not sure at this time", "Patience will server you well", "42"]
- i = random.randrange(0, 6)
- print(EightBall[i])
- restart()
- def restart():
- yn = input("Try again? Yes/No: ")
- ynLower = yn.lower()
- if ynLower == "y" or ynLower == "yes":
- main()
- elif ynLower == "n" or ynLower == "no" :
- print("Good bye!")
- quit()
- else:
- print("Invalid entry, try again.")
- restart()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement