Answers for "Find the Runner Up Score solution in python3"

0

Find the Runner Up Score solution in python3

if __name__ == '__main__':
    n = int(input())
    arr = map(int, input().split())
    arr = list(arr)
    x = max(arr)
    y = -9999999
    for i in range(0,n):
        if arr[i]<x and arr[i] > y:
            y = arr[i]
    
    print(y)
Posted by: Guest on April-23-2021

Code answers related to "Find the Runner Up Score solution in python3"

Python Answers by Framework

Browse Popular Code Answers by Language