Learn Python Training from the Best Tutors
Search in
minimum is the buit in function in python .
it is used to find the minimum value from the set,tabul,list.
syntax: min(iterable)
suppose a list contains a= (10 20 30 40 50)
print(min(a))
output : 10
tabul contains b = [10,20,40,5,60]
print(min(b))
here output is 5
set c = { 30,50,60,4,20}
here
print(min(c))
output is 4
read lessIn Python, min()
is a built-in function that is used to get the smallest item from an iterable (e.g. list, tuple, set, etc.) or a series of values. Here are some examples:
Example : Using min()
with a list
my_list = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5]
smallest = min(my_list)
print(smallest) # output: 1
In this example, min()
is used to find the smallest item in the my_list
list, which is 1
.
min()
is a built-in Python function that returns the smallest element in an iterable or the smal
lest of two or more arguments.
min(iterable, *[, key, default])
min(arg1, arg2, *args[, key])
Here is the syntax for using min()
:
View 2 more Answers
Related Questions
Who can learn the Python?
Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com
Ask a QuestionRecommended Articles
Top 5 reasons why you should learn Python
Python is one of the most popular programming languages in the world. It is general-purpose, object oriented, high-level programming language used in a number of programming fields. Python is a great programming language to learn as it will introduce you to the world of programming. If you are from the technical background...
What is Applications Engineering all about?
Applications engineering is a hot trend in the current IT market. An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...
Make a Career as a BPO Professional
Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...
8 Hottest IT Careers of 2014!
Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...
Looking for Python Training classes?
Learn from the Best Tutors on UrbanPro
Are you a Tutor or Training Institute?
Join UrbanPro Today to find students near youThe best tutors for Python Training Classes are on UrbanPro
The best Tutors for Python Training Classes are on UrbanPro