#!/usr/bin/env python3
from random import choice
from os import system
import time
def programExit ():
exitAnswer = input("Would you like to use JJ's Magic Fortune Teller again?(yes/no)")
if exitAnswer == "yes" or exitAnswer == "Yes" or exitAnswer == "y" or exitAnswer == "Y":
time.sleep(0.2)
mystic()
elif exitAnswer == "no" or exitAnswer == "No" or exitAnswer == "n" or exitAnswer == "N":
time.sleep(0.2)
system("clear")
print("Goodbye, thank you for using JJ's Magic Fortune Teller!")
time.sleep(2.4)
system("clear")
else:
system("clear")
print("I SAID ANSWER WITH 'yes' or 'no'")
time.sleep(1.5)
system("clear")
programExit()
def mystic ():
mysticAnswers = ["It is certain", "Your hopes were too high.. the answer is no", "It is decidedly so", "Without a doubt", "Yes-definitely", "You may rely on it", "As I see it, yes", "Most likley", "Outlook good", "Yes Signs point to yes", "Reply hazy", "try again", "Ask again later", "Better not tell you now", "Cannot predict now", "Concentrate and ask again", "Don't count on it", "My reply is no", "My sources say no", "Outlook not so good", "Very doubtful"]
system("clear")
print("Welcome to JJ's Magic Fortune Teller! Ask a yes or no question to continue your destiny")
print()
myQuestion = input("Give me a yes or no question... if you want to keep it a secret just click enter :) -->")
system("clear")
print(choice(mysticAnswers))
time. sleep(2)
system("clear")
programExit()
if __name__=="__main__":
mystic()
Welcome to JJ's Magic Fortune Teller! Ask a yes or no question to continue your destiny Give me a yes or no question... if you want to keep it a secret just click enter :) -->Is Jordan good at IT? Without a doubt Would you like to use JJ's Magic Fortune Teller again?(yes/no)no Goodbye, thank you for using JJ's Magic Fortune Teller!