Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to find second maximum element of an array python
Samthere
Programming language:
Python
2021-06-27 23:04:17
-1
Q:
how to find second maximum element of an array python
corsiKa
Code:
Python
2021-07-14 01:36:41
maximum1 = max(lst) maximum2 = max(lst, key = lambda x: min(lst)-1 if (x == maximum1) else x)
0
Tags
python
array
element
find
how
Related
python find index of highest value in list
find location of max value in python list
how to get maximum value of number in python
python return min length of list
python largest number in array
get index of highest value in array python
how to find the smallest number in a list python
how to find greatest number in python
max of a list in python
program to find the largest of three numbers in python
max of a list python
python find in largest 3 numbers in an array
python how to find the highest even in a list
how to make a python script write the minimum and maximum value
find the smallest number in an array python
return max value in list python
index of maximum value in list python
New to Communities?
Join the community