Object of ‘NoneType’ has no len() - error : <pre><code>z=[]
while len(z)&lt;8: 
       z=z.append(1)
</code></pre>

<p>This programmes says error in the line where the while loop is. The error is mentioned in the title. What should I do ?</p>
