I try to program now in pythonic. I have next case - some array, which elements I want to iterate with each others... At the moment I coded next example:
a = ['a','b','c','d','e','f']
for posx in range(len(a)):
for posy in range(posx+1, len(a)):
*some operation for these elements*
Now I want to ask some experience Pyhton users, how I can reduce such slow for'loops? Is it possible to use here ziptool? How I could understand, zip just connect two elements on the same position in two difeerent lists (or arrays). I want to iterate one list over another and get back the operation for every element in both lists.
Thanks a lot