# Python 3 - Number min() Method

#### Beyond Basic Programming - Intermediate Python

Most Popular

36 Lectures 3 hours

#### Practical Machine Learning using Python

Best Seller

91 Lectures 23.5 hours

#### Practical Data Science using Python

22 Lectures 6 hours

## Description

The method min() returns the smallest of its arguments i.e. the value closest to negative infinity.

## Syntax

Following is the syntax for the min() method −

```min( x, y, z, .... )
```

## Parameters

• x − This is a numeric expression.

• y − This is also a numeric expression.

• z − This is also a numeric expression.

## Return Value

This method returns the smallest of its arguments.

## Example

The following example shows the usage of the min() method.

```#!/usr/bin/python3

print ("min(80, 100, 1000) : ", min(80, 100, 1000))
print ("min(-20, 100, 400) : ", min(-20, 100, 400))
print ("min(-80, -20, -10) : ", min(-80, -20, -10))
print ("min(0, 100, -400) : ", min(0, 100, -400))
```

## Output

When we run the above program, it produces the following result −

```min(80, 100, 1000) :  80
min(-20, 100, 400) :  -20
min(-80, -20, -10) :  -80
min(0, 100, -400) :  -400
```
python_numbers.htm