this is another pretty simple question, but i've been trying to do it, and cant get it
basically what i need is pretty simple, its like say you have a list of 5 numbers. now you need to print out all the lists of possible 3 numbers from those 5 numbers. order doesn't matter (so like [3,4,5] won't be relisted as [4,5,3])
but basically this is what i had in mind but of course it gives an error... if anybody knows any simpler ways please do tell.
d = [3,6,6,2,7] b = [6,8] h =  for n in range (5): d.pop [n] if len(d) is 5: for i in range (4): d.pop [i] h = d + b print (h)