LearnPy Hub
← Tuples & Sets problems
Easy

Smallest and Largest as a Tuple

Read integers and print a tuple (smallest, largest).

Input

Integers separated by spaces.

Output

A tuple.

Sample 1

Input
3 9 1 7
Output
(1, 9)

Sample 2

Input
5
Output
(5, 5)
solution.py
Output appears here
Smallest and Largest as a Tuple · Python practice problem · LearnPy Hub