• + 39 comments

    I like your use of join. Btw, you could use list expansion for the read as well if you wanted:

    n = int(input())
    marksheet = [[input(), float(input())] for _ in range(n)]