from itertools import product A=((1,2),(3,4)) : from itertools import product
 A=((1,2),(3,4))
 B= list(product(*A)) 
 print (B)   
my output is [(1, 3), (1, 4), (2, 3), (2, 4)] 
but I want my output  (1, 3) (1, 4) (2, 3) (2, 4)
 please help