title: Print list while excluding specific named values
body: <p>I am looking for a basic way to exclude printing an item from a list (not remove/delete) if that named value = something specified, e.g. = 0</p>
  
  <p>I thought it would be something basic like this, but I get an error that I is not defined.</p>
  
  <pre><code>a = 2
  b = 0
  c = 4
  d = 0
  e = 6
  
  lis = [a,b,c,d,e]
  
  while i != 0 in range(lis):
    print (lis[i])
  </code></pre>
  
  <p>Wanted result:<br>
  2<br>
  4<br>
  6  </p>
  
  <p>Seems like I am missing something simple? Or is this not as simple as I imagined?</p>