Write lengths(words) returning a dict word → length.
lengths(['sql', 'pandas'])
→ {'sql': 3, 'pandas': 6}lengths([])
→ {}Submit runs 3 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.