Python – Find the Minimum of given List of Numbers
To find the smallest number of given List of numbers in Python, call min() builtin function and pass the list of numbers as argument. The function returns the least number in the give list of numbers.
In the following program, we shall take a list of numbers and find the least number in the list using min() function.
Python Program
</>
Copy
myList = [5, 8, 1, 9, 4]
result = min(myList)
print(f'Minimum of given list is {result}.')
Output
Minimum of given list is 1.
Conclusion
In this Python Tutorial, we have learnt how to find the smallest number of given list, with the help of Python example program.