My list look something like this,
[' 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']
P.s. the length of list is 101
And I'm trying to convert this list to a dict
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]
But it's storing only the last key and value pair in col_dict and not the whole data of the list. Please help me understand why is this happening and how to resolved it?