I was just looking through the itertools
documentation, looking for a way to get rid of a nested for loop like this:
for a in b:
for c in b:
<statement>
However, I couldn't find anything. Is there not a function for this? Should I just keep the nested loops?