LearnPy Hub
← Recursion & Lambda problems
Easy

filter() Long Words

Read words and print only those with more than 4 letters on one line, using filter() with a lambda. Print none if there are none.

Input

Words separated by spaces.

Output

One line.

Sample 1

Input
I love Python coding
Output
Python coding

Sample 2

Input
a bb ccc
Output
none
solution.py
Output appears here
filter() Long Words · Python practice problem · LearnPy Hub