• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
September 21, 2022 |7.7K Views

Python program to find the smallest number in a list

Description
Discussion

In this video, we will write a python program to find smallest number in a list

Below is the list of approaches that we will cover in this section:

1. Using sort() 
2. Using min()
3. Using loop

The first method is to sort the list in ascending order and print the index element as it will always print smallest element. 
The another method is to use simply min() function to print the minimum element from list. 
The last method is to use the native approach in with we iterate each element to find the smallest element from the list.

Python program to find smallest number in a list 
https://www.geeksforgeeks.org/python-program-to-find-smallest-number-in-a-list/