Write word_lengths(sentence) that returns a list with the length of each word, in order. Words are separated by spaces.
word_lengths('I love data')
→ [1, 4, 4]word_lengths('SQL')
→ [3]Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.