I have a list of integers, they are randomly sorted and may repeat: mylist = [5,4,2,4,5,6,7,3,8,3]
and a certain value (for example: value=35)
Now I want to get a list of list of integers out of mylist, we name it sumlist, that includes all the posible options of numbers that together add up to value.
So that when I would do:
sum=0
for i in sumlist[0]:
sum+=i
sum == value would return True.