How to split a string within a list to create key-value pairs in Python,print(dict([s.split('=') for s in my_list]))