title: Finding all possible combination on python
body: <p>I am trying to find all combination of numbers in a list that gives a certain number on python 2.7.Tried combinations of itertool but can't quite figure it out,so here it goes.</p>
  
  <pre><code>mylist=[1,2,3,4,5,6,7,8,9,10]
  number=60 # for 3 elements
  
  results=[[3,4,5],[2,3,10],[2,5,6],[1,6,10]...]  
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>import itertools
  
  num = [1, 2, 3, 4, 5,6,7,8,9,10]
  combinations = []
  
  for combination in itertools.combinations(num, 3):
      combinations.append(int("".join(str(i) for i in combination)))
      print combinations
  
  # ...
  combination=[123,124,125....]
  </code></pre>