title: Print location of specific value of list
body: <p>I want to print the location of specific values in a list.
  The following code prints out the location where the condition is met the first time, almost
  as many times as the condition is met instead of printing out every single location.</p>
  <p>The code:</p>
  <pre><code>numlist=[4,4,4,4,4,3,3,3,3,2,1,1,1,1,1,1,1,1]
  for i in numlist:
      if i==4:
          print(numlist.index(1))
  </code></pre>
  <p>Prints out:</p>
  <pre class="lang-none prettyprint-override"><code>10
  10
  10
  10
  10
  </code></pre>
  <p>When what I expect is:</p>
  <pre class="lang-none prettyprint-override"><code>10
  11
  12
  13
  14
  15
  16
  17
  </code></pre>