Write lengths(words) returning a dict word → length.
lengths(words)
lengths(['sql', 'pandas']) → {'sql': 3, 'pandas': 6}
lengths([]) → {}
Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.