title: How to access each string in the lists of list
body: <p>I was given a task to input multiple lines each consisting of multiple words.The task is to uppercase the words with an odd length and lowercase the words with an
  even length.
   My code now looks like this, can you help me to solve it right?</p>
  
  <pre><code>first = []
  while True:
  
      line = input().split()
      first.append(line)
      if len(line) &lt; 1:
          break
  for i in first:
      for j in i:
          if len(line[i][j]) % 2 == 0:
              line[i][j] = line[i][j].lower()
          elif len(line[i][j]) % 2 != 0:
              line[i][j] = line[i][j].upper()
           print(first[i])
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TiGHC.png" rel="nofollow noreferrer">it should look like this</a></p>