Python Tutorials

Python Programs

How to find the Minimum of Three Numbers in Python


How to find the Minimum of Three Numbers in Python ?

Answer

To find the minimum of three numbers in Python, you can use the `min` function.



✐ Examples

1 Find Minimum of Three Numbers

In this example,

  1. We assign values to variables a, b, and c.
  2. We use the `min` function to compare the numbers and get the minimum.

Python Program

a = 5
b = 8
c = 3
min_val = min(a, b, c)
print('Minimum of three numbers is:', min_val)

Output

Minimum of three numbers is: 3

Summary

In this tutorial, we learned How to find the Minimum of Three Numbers in Python language with well detailed examples.




More Python Comparison Operations Tutorials

  1. How to find the Maximum of Two Numbers in Python ?
  2. How to find the Minimum of Two Numbers in Python ?
  3. How to find the Maximum of Three Numbers in Python ?
  4. How to find the Minimum of Three Numbers in Python ?