I need to make several nested loops like this, but with a generic number of looping indices:
for ii in range(0,num):
for iii in range(0,num):
for iiii in range(0,num):
for iiiii in range(0,num):
Is it there any compact or practical way to do this? Thanks in advance.
python cartesian product.