title: Function that tests another function for all numbers 1 to 1000
body: <p>I've created a function named <code>number(x)</code> that tests a number to see whether or not a number is perfect or not. Now my goal is to create a tester function that tests all numbers from 1 to 1000 and return numbers that are perfect. This is the code i have for the test function:</p>
  
  <pre><code>def unittest():
  
      for i in range(0,1000):
          perfect(i)
          if True:
              return i
  </code></pre>
  
  <p>It's not working, but i think i'm close. Any advice or help?</p>