I'm learning programming logic with Python and I do not understand how the x of the input does NOT interfere with the iteration of the while loop, since it is the same variable. Please, I would like you to explain, valew !!!
#!/usr/bin/python3
numeros = [0,0,0,0,0]
x = 0
while x < 5:
numeros[x] = int(input("Números %d:" %(x + 1) ))
x += 1
while True:
escolhido = int(input("Que posição você quer imprimir (0 para sair): "))
if escolhido == 0:
break
print("Você escolheu o número: %d" %( numeros[escolhido -1] ))