Exercise: Map function III

Use a lambda function inside map to get the length of each word in the list.
words = ['map', 'function', 'is', 'powerful']
# Find the length of each word lengths = list(map(
print(lengths) # expected [3, 8, 2, 8]
Python
Setting up Python environment...
Output