Find the Runner-Up Score!

  • + 4 comments

    I was trying to convert set to list like you did. But I noticd you could just use sorted() for the set ! Weird, but it works just fine ...


    input()

    myList = sorted(set(map(int, input().strip().split()))) print(myList[len(myList)-2])