Posts

Showing posts with the label list in python

Max Min and Nested List in Python | Python programming | Codin India

Image
Hello friends!   Codin India   here and in today's post we are going to learn Python's inbuilt functions that is Min Max Nested List So, Let us understand it one by one:-  min():- Python has an inbuilt function min() which finds the minimum value of the given list, tuples or something. It first calculates the biggest number one by one and provides the minimum value of the list. Syntax :- min(array_name) Code :- list1 = [1,2,3,4,5,6] print(min(list1)) Output:- 1 Explanation:-  First we created list that has name list1 and then we created called Python's inbuilt function min() and print it. Let us understand it by code:- max():- Python has an inbuilt function min() which finds the minimum value of the given list, tuples or something. It first calculates the biggest number one by one and provides the minimum value of the list. Syntax:-   max(array_name) Code :- list1 = [1,2,3,4,5,6] print(max(list1)) Output:- 6 Explanation:-  First we created list that has name list1 and then