import itertools li,l= [1, 3, 3],2 for subset in itertools.combinations(li, l): print subset l is the length of subsequent of element from the input iterable
import itertools li,l= [1, 3, 3],2 for subset in itertools.combinations(li, l): print subset l is the length of subsequent of element from the input iterable