Trying to add records and sort them as per the scores but returning none as output

Viewed 5

record=[] for _ in range(int(input())):

    name = input()
    score = float(input())
    a=[name,score]
    record+=[a]
    

res1=record.sort() print(res1)

I am getting output as None.please explain.

0 Answers
Related