title: Python for loop list of strings different output
body: <p><strong>Why is this codes output different?</strong></p>
  <pre><code>lst = [&quot;id1&quot;, &quot;id2&quot;, &quot;id3&quot;, &quot;id4&quot;, &quot;id5&quot;, &quot;id6&quot;, &quot;id7&quot;, &quot;id8&quot;]
  
  for i in lst:
      print(i[2])
      
  print([i[2] for i in lst])
  </code></pre>