title: nested if statement inside for loop python
body: <p>I'm trying to do a nested if statement</p>
  <pre><code>for x in listsent:
      print(x)
      
      z = input()
      if z == 1:
          tag = &quot;O&quot;
          q = input()
          if q == 1:
              pos = &quot;Q&quot;
          elif q == 2:
  
              
  
      elif z == 2:
          tag = &quot;Q&quot;
          q = input()
          if q == 1:
              pos = &quot;O&quot;
          elif q == 2:
  </code></pre>
  <p>but when when I enter 1 in the first IF statement it takes me to the next item in the for loop instead of taking me to the second if statement</p>