Posted on 19th April 2024
To find the minimum or the smallest integer in the list, we can simply use the method called sort and then can print the first integer in the list the example program is
list = [5, 15, 22, 3]
list.sort()
print("The Smallest element in the list:", *list[:1])
STILL GOT QUERIES?