You can try something like
input_file = open ("testmarks.txt", "r")
lists = [row.split() for row in input_file.readlines()]
lists = sorted(lists, key=lambda row: row[2], reverse=True)
print(f'Highest mark was {lists[0][2]} achieved by {lists[0][0]} {lists[0][1]}')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…