LearnPy Hub
← Comprehensions problems
Easy

Word Lengths

Read words and print a list of their lengths.

Input

One line of words.

Output

A list.

Sample 1

Input
the quick fox
Output
[3, 5, 3]

Sample 2

Input
a
Output
[1]
solution.py
Output appears here
Word Lengths · Python practice problem · LearnPy Hub