title: Getting issue while trying to convert a list to a dictionary in python but it's extracting only the last key-value pair from the list
body: <p>My list look something like this,</p>
  <pre><code>[' Objective ',
   ' To get an opportunity where I can make the best of my potential.',
  ' Experience ',
   ' Division of Cranes Software International Ltd . Project title November-2021 • Each Differentiation using Iris Flower UNDERGRADUATE PROJECT']
  </code></pre>
  <p>P.s. the length of list is 101</p>
  <p>And I'm trying to convert this list to a dict</p>
  <pre><code>col_dict = {}
  for i in range(1, len(columns_lst),2):
      col_dict = {columns_lst[i] : columns_lst[i+1]}
      col_dict[columns_lst[i]] = columns_lst[i + 1]
  </code></pre>
  <p>But it's storing only the last key and value pair in <code>col_dict</code> and not the whole data of the list. Please help me understand why is this happening and how to resolved it?</p>