Find the Runner-Up Score!

  • + 2 comments

    May be a noob version of your code

    n = int(raw_input())
    arr = map(int, raw_input().split())
    
    dup =[]
    for i in arr:
        if i not in dup:
            dup.append(i)
    dup = sorted(dup)
    print dup[len(dup) - 2]