Good, I have a list and I want to iterate on it, and then inside that for
iterate on the same list from the next value I read until the end.
In a Java-like programming style it would be:
int[10] array;
for (int i=0; i < array.length(); i++)
for (int j=i+1; j < array.length(); j ++)
//hacer algo con el array comparando los valores de a[i] y a[j]
How can I do this in pyhton? At first I had this:
for a in array:
del array[0]
for a2 in array:
//hacer algo con el array comparando los valores de a y a2
But it works just for the first iteration .. any help?