while in not working in nested list PYTHON : <p>The first section of code prints 1 but the second doesn't, why and how to produce the above effect?</p>

<pre><code>while [1] in k:
    print(1)

k=[[0],[1,1,1],[0]]
while [1] in k:
    print(1)

</code></pre>
