title: Relatively new to programming and can't figure out how to exit the magic8ball function back to the gamer function
body: <p>I made a magic 8 ball program, however, I cannot figure out how to return from the magic 8 ball function to the gamer function. `</p>
  
  <pre><code>def gamer():
  choice = int(input("What game do you want to play? \n[1]Magic 8 Ball  \n[2]Dice?\n[3]Exit \n"))
  if choice == 1:
      def magic8ball():
          import random
          print("\nWelcome to the Magic 8 Ball Program. Input your question and hit enter for the 8 ball to respond")
          print("What is your question?")
  
          userinput = input()
          choices = ["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", "Yes", 'Signs point to yes', "Reply hazy try again", "Ask again later", "Better not tell you now",
          "Cannot predict now", "Concentrate and ask again", "Dont count on it", "My reply is no", "My sources say no", "Outlook not good", 'Very doubful']
          if userinput != "exit" or "EXIT" or "Exit":
              print(random.choice(choices))
          if userinput == "exit" or "Exit" or "EXIT":
              #Where I need help
      magic8ball()
      while True:
          magic8ball()
          continue`
  </code></pre>