I have the following list:
['a:1', 'b:2', 'c:3', 'd:4']
I would like to convert to a ordered dict (using collections):
{'a': 1, 'b': 2, 'c': 3, 'd': 4}
I have seen solutions using regex here but I am not familiar with regex enough to roll a solution. Any thoughts on this?
Or, converting the values to integers: