LearnPy Hub
← Variables problems
Easy

Swap Two Values

Read two words a and b. Swap them so a holds the second word and b the first, then print a b.

Input

Two words on separate lines.

Output

The two words in swapped order, separated by a space.

Sample 1

Input
tea
coffee
Output
coffee tea

Sample 2

Input
left
right
Output
right left
solution.py
Output appears here
Hints
Swap Two Values · Python practice problem · LearnPy Hub