LearnPy Hub
← Input problems
Easy

One Word per Line

Read a sentence and print each word on its own line using print(*words, sep='\n').

Input

One line.

Output

Several lines.

Sample 1

Input
I love Python
Output
I
love
Python

Sample 2

Input
one
Output
one
solution.py
Output appears here
One Word per Line · Python practice problem · LearnPy Hub