Write to_dict(pairs) that turns a list of [key, value] pairs into a dictionary.
to_dict([['a', 1], ['b', 2]])
→ {'a': 1, 'b': 2}to_dict([])
→ {}Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.