# Python code snippet – How to find second maximum element of an array ?

maximum1 = max(lst) maximum2 = max(lst, key = lambda x: min(lst)-1 if (x == maximum1) else x)

### Curly hair, very fair, please share 🙂

*Related*

2nd maximum element in array in python, 2nd maximum element in array python, find second largest element in array python, find second largest number in a list, find second largest number in array in python, find second largest number in array position python, find second largest number in array python, find second max in array python, find the second largest number in an array python, find the second minimum element of an array python, finding the index of the second largest element in an array python, finding the second largest number in an array python, get second largest number from array python, get second max of a list, get the second highest value in python from array, how do you find second highest number in an integer array in python, how to find second highest number in array python, how to find second largest number in array in python, how to find the 2 max in a list python, print second largest number in list python, python code to find second largest number, python find second largest value in array, python get second largest num in array, return second highest digit in array python, second heighst number in a list, second highest value in array python, second largest element in array in python, second largest element in array python, second largest number in array python, second max in list python, second max in python, second maximum in list python, Second Maximum Number in a ListDescriptionGiven a list of numbers, find the second largest number in the list., WAP to find the 2nd largest number from the list of the numbers entered through keyboard.