Exercise: List Comprehension III

Use list comprehension to create a new list containing the length of each string in the words list.
words = ['moon', 'stars', 'galaxy']
### adjust code here ### lengths = [
print(lengths) # expected [4, 5, 6]
Python
Setting up Python environment...
Output