How to get the list of divisors of a given number?
<p>So the function inputs a list, and a number. Then it should return the index of the list that the number is able to be divided by. If there is no numbers in the list it can be divided by, then it should just return a blank list.</p>

<p>For example,</p>

<pre><code>div([5,10,15,2,34],10)
[0,1,3]
</code></pre>

<p>Here is my coding:</p>

<pre><code>def div(nlst, n):
    nlst = []
    for div in nlst:
        if n % nlst == 0:
        return nlst.index(div)
        else: []
</code></pre>

<p>What is wrong with my code?</p>
