how to skip an empty column with python
<p>This must be really basic, but after some searching I haven't found an answer yet.</p>

<p>I'm iterating through a list where some columns have values in them and some are empty. I'd like the code to skip the line if the column is empty. This is what I have:</p>

<pre><code>for lines in luku:
    split = lines.split("\t")
    if "c-sarja" in split and "F" in split[2]:
        c_nainen = lines.split("\t")
        if int(c_nainen[8]) &gt;= 50:
            old_lady = lines
            print c_nainen[0], ": OLD," " AGE:", c_nainen[8], "years"
        else:
            ??
</code></pre>

<p>error:</p>

<pre><code>ValueError: invalid literal for int() with base 10: ''
</code></pre>
