title: Delete first occuring zeros from a list in python
body: <p>I want to delete list of zeros occurring initially from the list, but it behaves oddly by the method i tried. </p>
  
  <pre><code>a = [0,0,0,0,0,0,0,0,3,4,0,6,0,14,16,18,0]
  
  for i in a:
      if i == 0: a.remove(i)
      else: pass
  
  print (a)
  
  &gt;&gt;&gt; [0, 3, 4, 0, 6, 0, 14, 16, 18, 0]
  </code></pre>
  
  <p>but I need an OUTPUT like this</p>
  
  <blockquote>
    <p><strong>[3, 4, 0, 6, 0, 14, 16, 18, 0]</strong></p>
  </blockquote>
  
  <p>And also lets assume the list grows or reduces so I cant keep the range of zeros and delete them. Where am I going wrong. </p>