removing elements from a list
<p>How can i remove elements with a value of 0 as they pop upp in this loop?</p>

<pre><code>y = [4, 2, 7, 9]
x = input("run?")
while x:
    for i in range(len(y)):
        y[i] -= 1
    y.append(len(y))
    print(y)
</code></pre>
