How to find the factors of a number and return it in a list in python
<p>This is the code I have right now. I can't get it to return the right results for the question. </p>

<pre><code>def problem(n):
    myList = [1,n]
    for i in range(1,n):
        result = int(n ** .5) 
        new = n/result 
        i = i + 1 
        myList.append(new) 
    return myList 
</code></pre>
