How can I properly use for loop in def? : <pre><code>def kolas(lst, n):
    for i in range(0, len(lst)):
        e = []
        x = lst[i] % n
        e.append(x)
    return x
</code></pre>

<p>I noticed that for loop doesn't affect in def() - <strong>i</strong> is only assigned by the first value of the list. Does exist funcion like for loop that affects in def()?</p>
