title: How to get the sum of all the divisors of a number, without including it
body: <pre><code>print(func(6)) # Should be 1+2+3=6
  print(func(12)) # Should be 1+2+3+4+6=16
  </code></pre>
  
  <p>I wrote a function that returns just a list of all dividers of a number</p>
  
  <pre><code>def func(num):
      add=[]
      for i in range(1,num-1):
          if num%i==0:
              add.append(i)
      print(add)
  </code></pre>