LearnPy Hub
← Comprehensions problems
Easy

Clean Up Words

Read words separated by commas (with stray spaces). Print a list of the words stripped and lowercased, skipping empty ones.

Input

One line.

Output

A list.

Sample 1

Input
 Tea, Coffee ,MILK
Output
['tea', 'coffee', 'milk']

Sample 2

Input
a
Output
['a']
solution.py
Output appears here
Clean Up Words · Python practice problem · LearnPy Hub