Reformat a collection of list into a dictionary in Python.
[['a', 1], ['b', 2], ['c', 3], ['d', 4]]
data = [['a', 1], ['b', 2], ['c', 3], ['d', 4]]

my_dict = dict(data)
print(my_dict) # {'a': 1, 'b': 2, 'c': 3, 'd': 4}