title: Python index issue, looking for prettier code
body: <p>my current code is like below, I'm using try and except to pass the exception from list indexing, length of "text" could be less than 3 sometimes. I'm looking for a prettier way. Please let me know your idea, thanks.</p>
  
  <pre><code>for item in items:
    text = item.splitlines()
    try:
      name = text[0]
    except:
      name = ""
  
    try:
      tag = text[1]
    except:
      tag = ""
  
    try:
      age = text[2]
    except:
      age = ""
  </code></pre>