LearnPy Hub
← Strings problems
Medium

Reverse the Word Order

Read a sentence and print its words in reverse order, but each word still spelled forwards.

Input

One line.

Output

One line.

Sample 1

Input
I love Python
Output
Python love I

Sample 2

Input
hello
Output
hello
solution.py
Output appears here
Reverse the Word Order · Python practice problem · LearnPy Hub