Find the Runner-Up Score!

Sort by

recency

|

8275 Discussions

|

  • + 0 comments

    Python is such a versatile and beginner-friendly programming language. Most bet

  • + 0 comments

    n = int(input()) arr = list(map(int, input().split())) max_val = max(arr) arr = [x for x in arr if x != max_val] print(max(arr))

  • + 0 comments
    print(sorted(set([i for i in list(arr)]),reverse=True)[1])
    
  • + 0 comments
    print(n)
    

    XD

  • + 0 comments

    n=int (input() ) scores = list(map(int, input("Enter a list of numbers: ").split())) winner = max(scores) runner_up = max(score for score in scores if score != winner)

    print(f"Winner is: {winner}") print(f"Runner-up is: {runner_up}")