Each item is (name, price). Write price_map(items) that returns a dict from name to price, using a dict comprehension.
price_map([['pen', 20], ['book', 150]])
→ {'pen': 20, 'book': 150}price_map([])
→ {}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.