LearnPy Hub
← Functions problems
Easy

Write Your Own min()

Write a function my_min(nums) that returns the smallest number without using min(). Read a list and print my_min of it.

Input

One line of integers.

Output

One integer.

Sample 1

Input
3 1 2
Output
1

Sample 2

Input
5
Output
5
solution.py
Output appears here
Write Your Own min() · Python practice problem · LearnPy Hub