import random
m = 6
mass=[]
k=0
j=0
for i in range(m):
mass.append(random.randint(-10,10))
print(mass[i]) # -10 0 -8 0 -10 1
for i in mass:
k=k+1
for j in range(k,m): # j = 0 -8 0 -10 -> quit
if (i==mass[j]): # -10==0 -10==-8 -10==0 -10==-10 -> quit
print('yes')
quit()