- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Python program to find the smallest number in a list

In this article, we will learn about the solution to the problem statement given below.

**Problem statement** − We are given al list, we need to display the smallest number available in the list

Here we can either sort the list and get the smallest element or use the built-in min() function to get the smallest element.

Now let’s observe the concept in the implementation below −

## Example

list1 = [101, 120, 104, 145, 99] # sorting using built-in function list1.sort() print("Smallest element is:", list1[0])

## Output

Smallest element is: 99

All the variables are declared in the local scope and their references are seen in the figure above.

## Example

list1 = [101, 120, 104, 145, 99] #using built-in min fucntion print("Smallest element is:", min(list1))

## Output

Smallest element is: 99

All the variables are declared in the local scope and their references are seen in the figure above.

## Conclusion

In this article, we have learned about how we can find the smallest number in a list.

- Related Questions & Answers
- 8085 Program to find the smallest number
- Python program to find Largest, Smallest, Second Largest, and Second Smallest in a List?
- Python program to find the largest number in a list
- Program to reduce list by given operation and find smallest remaining number in Python
- C# program to find Largest, Smallest, Second Largest, Second Smallest in a List
- C++ Program to find the smallest digit in a given number
- Program to find nth smallest number from a given matrix in Python
- Python program to find largest number in a list
- Python program to find the second largest number in a list
- Java program to find the smallest number in an array
- Find the smallest number in a Java array.
- Java program to find the 2nd smallest number in an array
- How to find the smallest number greater than x in Python?
- 8085 program to find smallest number between two numbers
- Python program to find the String in a List

Advertisements