Looking for a way to transform a list of coordinates into pairs of dictionaries, i.e if:
l = [1, 2, 3, 4, 5, 6, 7, 8]
I want to create a list of dictionaries:
output = [{'x': 1, 'y': 2}, {'x': 3, 'y': 4}, ... ]
Any ideas on how to do this "pythonically"?