LearnPy Hub
← Tuples & Sets problems
Easy

Point Swap

Read a point as two integers x y on one line. Store it in a tuple, then print the tuple, then a new tuple with x and y swapped.

Input

One line: x y.

Output

Two tuples.

Sample 1

Input
3 4
Output
(3, 4)
(4, 3)

Sample 2

Input
0 0
Output
(0, 0)
(0, 0)
solution.py
Output appears here
Point Swap · Python practice problem · LearnPy Hub