title: Array Indexing in Python
body: <p>Beginner here, learning python, was wondering something.</p>
  
  <p>This gives me the second element:</p>
  
  <pre><code>list = [1,2,3,4]
  list.index(2)
  2
  </code></pre>
  
  <p>But when i tried this: </p>
  
  <pre><code>list = [0] * 5
  list[2] = [1,2,3,4]
  list.index[4]
  </code></pre>
  
  <p>I get an error. Is there some way to pull the index of an element from an array, no matter what list it's placed into? I know it's possible with dictionaries:</p>
  
  <pre><code>info = {first:1,second:2,third:3}
  for i in info.values:
  print i
  1
  2
  3
  </code></pre>
  
  <p>Is there something like that for lists?</p>