Languages
[Edit]
EN

Python - min() method example

0 points
Created by:
Keisha-Acosta
380

The min() function returns the smallest number from given numbers.


1. Documentation

Edit
Syntax

or

Parametersx1x2xN - values to compare
Result

Minimal number value.

It returns TypeError if at least one of the provided values is not a number.

Descriptionmin is a method that takes number arguments and returns the smallest one value.

2. Getting min value from array examples

Edit

2.1. With min() method

Edit

2.2. By comparing all the elements in the array

Edit

References

Edit
  1. Maxima and minima - Wikipedia

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Cross technology - Math.min()

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join