A question about making a sort-of-counter.

Justin Park hp6 at rice.edu
Tue Mar 30 23:31:58 CEST 2010

Suppose I have a list.
a = list()
And suppose allowed digits as the element are 1,2,3,4,5.

What can I do in order to iterate over all possible values for each element?
For instance, the sequence of the list I want to have would be



How can I make it happen?


More information about the Python-list mailing list