• + 1 comment

    Code For Beginners:

        marks=[]
        s=[]
        for _ in range(int(input())):
            name = input()
            score = float(input())      
            m=[]
            m.append(name)
            m.append(score)
            s.append(score)
            marks.append(m)
            
        s=list(sorted(set(s)))
        second_min=s[1]
        sec=[]
        for i in marks:
            if i[1]==second_min:
                sec.append(i[0])
        sec.sort()
        for i in sec:
            print(i)