Assume we are given two positive integers a and b. We want to know all possible all possible lists of size b where each element can be from 0 to a (not including a).
For example if a =2, b=2, we should have [0,0],[0,1], [1,0],[1,1].
Is there any way for having all such lists with Standard python functions?