p_dil_1, p_dil_2, p_dil_3, p_dil_4 ..... are variables I have already made.
tg1 = p_dil_1
tg2 = p_dil_2
n_dil = 0
while True : 
    n_dil += 1
    # some movement here
    
    if n_dil == 10 :
        break
    if n_dil <= 10 : 
        tg1 = p_dil_2
        tg2 = p_dil_3
        continue 
The original purpose is
For the first loop, tg1=p_dil_1, tg2=p_dil_2
For the second loop, tg1=p_dil_2, tg2=p_dil_3
...
For the tenth loop, tg1=p_dil_10, tg2=p_dil_11
and end the loop
How can I make the loop simple?
 
     
     
     
     
    