I'm trying to do a nested if statement
for x in listsent:
print(x)
z = input()
if z == 1:
tag = "O"
q = input()
if q == 1:
pos = "Q"
elif q == 2:
elif z == 2:
tag = "Q"
q = input()
if q == 1:
pos = "O"
elif q == 2:
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