title: Problems with "while" looping
body: <p>I have to somehow do a function in which when I execute it I will be able to add all the divisors of a number, in the way shown below. </p>
  
  <p>This is getting me crazy, I have been in the same problem for about an hour. </p>
  
  <pre><code>def sum_divisors(n):
    # Return the sum of all divisors of n, not including n
    divisor = 1
    while divisor &lt; n:
      if n%divisor==0:
        return divisor
        divisor = divisor + 1
      else:
        divisor = divisor + 1
  
  print(sum_divisors(6)) # Should be 1+2+3=6
  print(sum_divisors(12)) # Should be 1+2+3+4+6=16
  </code></pre>