title: "if choice..." continues onto the next "if choice..."
body: <p>Hello i'm fairly new to python and am having trouble with a segment of my code. After one "if" statement my code carries onto the next "if" statement when I don't want it to. I have tried elif but it has come up with invalid syntax. </p>
  
  <pre><code> print(
      """
  
      Flash Card Quiz
  
      0 - Show Keywords
      1 - Take the Test
      2 - Exit
      """
      )
  
  choice = input("Choice: ")
      print()
  
      #ShowKeywords
      if choice == "0":
          fp = open('keywords.txt')
          while 1:
              line = fp.readline()
              if not line:
                  break
              print (line)
  
      # TaketheTest
      if choice == "1":
          print("Here is your Keyword")
      import random
      with open('keywords_1.txt') as f:
           a = random.choice(list(f)).strip()
           print ("    ")
           print ("------", a)
  </code></pre>
  
  <p>This is what is showing</p>
  
  <pre><code>fibre,A nutrient that cannot be digested.
  
  
  ------ photosynthesis
  Here are your options, select A, B or C, whichever is correct.
  
  Press the enter key to continue.
  </code></pre>
  
  <p>After "fibre,A nutrient that cannot be digested." I would like it to go back to the choice menu. How would I do this please?</p>