Write lengths(words) that returns a dictionary mapping each word to its length.
lengths(['sql', 'python'])
→ {'sql': 3, 'python': 6}lengths([])
→ {}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.