Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find runner up score in python

price=[10,20,4,5,4,6,46,43,4,64,65,8,45,55,558,15,5,4,6,5,255,5]
price.sort()
price.reverse()
max=price[0]
sec_max=price[1]
print(price)
print(f"the max is {max}, runner up is {sec_max}")
Source by programs.programmingoneonone.com #
 
PREVIOUS NEXT
Tagged: #find #runner #score #python
ADD COMMENT
Topic
Name
4+6 =