I have a list of objects:
list
[\'fb_ads_sm\', \'Active\', \'18 hr ago\', \'23\', \'sm_sg13\', \'Pending\', \'12 hr
Try this method: data is your actual list.
dict_list = {} for i in range(0, len(data)-1, 4): dict_list[data[i]] = data[i+1]