Solve problem "To swap the two words" online - Learn Python 3 - Snakify

To swap the two words


Statement

Given a string consisting of exactly two words separated by a space. Print a new string with the first and second word positions swapped (the second word is printed first).

This task should not use loops and if.

Advertising by Google, may be based on your interests

In all the problems input the data using input() and print the result using print().