• + 0 comments

    n = int(input("Enter number of Students: ")) stu_list = []

    # Collecting student names and scores for i in range(n): name = input("Student name: ") score = float(input("Score: ")) stu_list.append([name, score])

    # Extracting only the scores marks_list =[x[1] for x in stu_list]

    # Finding the second lowest score m = sorted(set(marks_list)) # Sorting unique scores

    
    
    
    

    Printing names

    for name in names: print(name)

    Printing names

    for name in names: print(name)