title: Python: Matching space with a If statement
body: <p>Hi I have an script that look for information and the information is suppose to be integers, but sometime I find a empty string and because of that I get the following error:</p>
  
  <pre><code>ValueError: invalid literal for int() with base 10: ''
  </code></pre>
  
  <p>I was trying to do the following, but it does not work.</p>
  
  <pre><code>list = ['12', '14', '45', ''] 
  
  for i in list:
      if '' in i:
          i = 0
          i
      else:
          i
  </code></pre>
  
  <p>This will match everything. It got to be another way and there is no way I can edit the source. Thanks</p>