How do I iterate through a list of strings and print each item?
<p>I have a list of strings and print each of the strings in the list, meaning not <code>['word1','word2','word3']</code> but instead: <code>word1</code>, <code>word2</code>, <code>word3</code>.</p>

<p>I tried doing this:</p>

<pre><code>for i in list:

    print list[i]
</code></pre>

<p>but I get the message </p>

<blockquote>
  <p>"list indices must be integers, not str"</p>
</blockquote>

<p>I am really confused on how I should actually do this?</p>

<pre><code>for i in list:
    print i
</code></pre>

<p>I is the list element: in other words, it takes on the values of the member strings, in order.</p>

python string list