Write word_lengths(text) returning a dict from each distinct lower-case word to its length, using a dict comprehension.
word_lengths('Data is data')
→ {'data': 4, 'is': 2}word_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.