First time here? Check out the FAQ!
answered 2021-10-01 21:19:24 +0100
Prehaps coud itertools.product be of some help:
itertools.product
from itertools import product P = product(range(6), repeat=4) for i,j,k,l in P: print(i,j,k,l)