title: How to subtract the smallest from the largest number until 0 is left
body: <p>I am trying to make a function that would keep subtracting the smallest from the largest number, replacing the largest number with the output of the subtraction until it gets to 0. So for instance, the input 5,3 should return 3,2,1,1. But my code doesn't give any output. How can this function be improved to give the desired output?</p>
  <pre><code>def equation(w,l):
      number = []
      while w &gt; 0:
          number.append(min(l,w))
          l = max(l,w) - min(l,w)
      return number
  </code></pre>