LearnPy Hub
← Comprehensions problems
Easy

Short Words Only

Read words and print a list of words with 3 letters or fewer, using a comprehension.

Input

Words separated by spaces.

Output

A Python list.

Sample 1

Input
I am a big fan
Output
['I', 'am', 'a', 'big', 'fan']

Sample 2

Input
Python programming
Output
[]
solution.py
Output appears here
Short Words Only · Python practice problem · LearnPy Hub