Answers for "2,3,4,5,5,5 finding runner up in python"

1

find the runner-up score

n = int(input())
arr = list(map(int, input().split()))
zes = max(arr)
i=0
while(i<n):
    if zes ==max(arr):
        arr.remove(max(arr))
    i+=1
print(max(arr))
#note: do not  use set() will not work for negative numbers
# contact me : [email protected]
Posted by: Guest on May-26-2020

Code answers related to "2,3,4,5,5,5 finding runner up in python"

Browse Popular Code Answers by Language