Aug-26-2017, 05:15 PM
l=['a','b','c'] r=[1,2,3] e=['a','b','c','d'] n=[] for i in l: for j in r: for t in e: n.append(i+str(j)+t) print nhi, i am trying to do some thing like this - to make all the posibble combintaition of values from all the lists.
the broblem is that i dont know how many list i will have, its depends on the user input.
so is there a way to creates multiple loops without defining then in the inital program?
for i in l: for j in r: for t in e:it should be indent