daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import itertools
  2.  
  3. sets = []
  4.  
  5. for i in range(n):
  6.     sets += [A[i]] # A[i] is a list [a_1, a_2,... , a_n]
  7.  
  8. for i in itertools.product(*sets):
  9.         print(i)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top