I'm currently making a match making system of some sort, and I want to iterate over a list and match the people in the list up. But I don't know how to get rid of the values (A and B) as I iterate and not raise the "list.remove(x): x not in list error". Does anyone know I can achieve this ?
for A in SORTEDUsers:
for B in SORTEDUsers:
if A[1] == (B[1]-1) or A == (B[1]) or A == (B[1]+1) and (B[2] in A[3]) and A[5] in B[5] and A != B:
print(A[0],B[0])