I want something like code below, but \"pythonic\" style or using standard library:
def combinations(a,b): for i in a: for j in b: y
>>>a=[1,2,3] >>>b=[4,5,6] >>>zip(a,b) [(1, 4), (2, 5), (3, 6)]