title: IndexError: list assignment index out of range in python
body: <p>IndexError: list assignment index out of range in python
  What am i doing wrong. I am an newbie</p>
  
  <pre><code>actual_ans_dict = []
  for data in prsnobj.result:
      actual_ans_dict[data[0]] = data[1]
      print actual_ans_dict
  </code></pre>