Skip to content

Coder Tutorial

Menu
  • Home
  • HTML
  • CSS
  • PHP
  • SQL
  • MySQL
  • JS
  • PL/SQL
  • Python
  • Java
  • Oracle
Home
Python
Python MIN

Python MIN


Min function

The min() function return the minimum number in an iterable or the minimum number of two or more arguments.

Examples

Example 1

	
>>> min(2,3)
2
>>> min('7', '3', '8')
'3'
>>> x = 12
>>> y = 15
>>> z = 11
>>> min(x,y,z)
11
>>>

Example 2

>>> s = [5, 7, 2, 1, 11, 5]
>>> min(s)
1
>>> a = [1, 2, 1, 5]
>>> b = [4, 3, 2, 8, 1]
>>> c = [8, 9]
>>> min(a,b,c)
[1, 2, 1, 5]
>>> 

Tutorials

  • Python Tutorial
  • Numbers
  • Strings
  • Lists
  • IF statement
  • FOR statement
  • Range function
  • Break statement
  • Continue statement
  • Tuples
  • Sets
  • Dictionaries
  • Define Function
  • Define Class
  • Dates and Times
  • String Pattern Matching
  • Read and Write Files
  • Exception Handling
  • Functions

Recent Posts

  • Java Polymorphism
  • Java Encapsulation
  • Java Abstraction
  • PostgreSQL ERROR: cannot begin/end transactions in PL/pgSQL
  • PostgreSQL Column must appear in the GROUP BY clause
  • PostgreSQL Column specified more than once
  • PostgreSQL Create database, Alter database examples
  • PostgreSQL Create schema syntax, Alter schema
  • PostgreSQL Create database user, alter and drop username
  • PostgreSQL Alter table name. Modify column name
Coder Tutorial Copyright © 2025. | Privacy Policy
Back to Top ↑