Utkarsha Nathani

Utkarsha Nathani

21 Articles Published

Articles by Utkarsha Nathani

Page 3 of 3

Python Program to Get Minimum and Maximum from a List

Utkarsha Nathani
Utkarsha Nathani
Updated on 27-Mar-2026 11K+ Views

Python lists are mutable, ordered collections that can store multiple elements. Finding the minimum and maximum values from a list is a common operation with several approaches available. Finding Minimum Value from List Using min() Function The min() function returns the smallest element from a list or any iterable. It works with both numbers and strings ? numbers = [15, 58, 30, 97] minimum = min(numbers) print("The smallest element is:", minimum) The smallest element is: 15 For strings, min() returns the lexicographically smallest value ? names = ["alina", ...

Read More
Showing 21–21 of 21 articles
« Prev 1 2 3 Next »
Advertisements