Find the Runner-Up Score!

  • + 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}")