title: All possible combinations of operations on list of numbers to find a specific number
body: <p>I know that there are other questions like mine but the only problem is that they get all the combinations for all of the varibales in list but I want it so that the user enters the number that the want and the numbers they need to make the desired number. This is the code that I have:</p>
  
  <pre><code>numbers = []
  operators = ['+', '*', '-', '/']
  desire = int(input("Enter the number you want: "))
  num1 = int(input("Enter First number: "))
  num2 = int(input("Enter Second number: "))
  num3 = int(input("Enter Third number: "))
  num4 = int(input("Enter Fourth number: "))
  numbers.append(num1)
  numbers.append(num2)
  numbers.append(num3)
  numbers.append(num4)
  </code></pre>
  
  <p>But I have no idea how to expand on this</p>
  
  <p>This is an example on what the code should do:</p>
  
  <p>Say that the number they want made is <code>24</code> and</p>
  
  <p>Say the numbers that they enter are <code>1, 9, 8, 2</code></p>
  
  <p>output should be this:</p>
  
  <p><code>9 - 1 + 8 * 2 = 24</code></p>
  
  <p>etc...</p>
  
  <p>All possible solutions need to be listed</p>
  
  <p>All suggestions will be greatly appriciated</p>