title: Asking a user if they want to keep using the program or exit
body: <p>I'm writing a short code that asks the user if they would like to keep using the program. However, I'm stuck because everything I've tried isn't working. The program takes the first step of the if/else statement and runs with it no matter the input from the user. I've tried just having if/else statement, now I'm trying a while loop, and everything in between. Any help would be appreciated!</p>
  <pre><code>def main():
      response = True
      while response:
          print(&quot;Think of a question to ask the Magic 8 Ball and press enter.&quot;)
          input()
          randNumber = random.randint(1, 9)
          print(magicBall(randNumber))
          print()
          response = input(&quot;Press 'Y' if you have another question or 'N' if you want to quit: &quot;)
          if response == &quot;N&quot; or &quot;n&quot;:
              response = False
              print(&quot;Goodbye&quot;)
              break
              #sys.exit()
          else:
              main()
              sys.exit()
  </code></pre>