How do you make a leaderboard in python?
<p>I am working on a project for my school and I was wondering if there is a way to make a leaderboard in python? I am fairly new to python and so far, what I have done is get the user's input and store it in a text file. I'm not sure how to continue. Any help is appreciated, thanks!</p>

<pre><code>x = 0

Name = [None]*1000
Class = [None]*1000
Score = [0]*100

# opens the text file called text_file
text_file = open("write.txt","a")

# puts in the values of the highest scores and "saves it" by closing and opening the file
def write_in_file():
    global text_file
    text_file.write(Name[x])
    text_file.write("\n")
    text_file.write(Class[x])
    text_file.write("\n")
    text_file.write(Score[x])
    text_file.write("\n")
    text_file.write("\n")
    text_file.close()
    text_file = open("write.txt","a")

# asks for player data and puts highest value in a file
for i in Name:
    Name[x] = input("Name:")
    Class[x] = input("Class:")
    Score[x] = input("Score:")
    write_in_file()
    print(Score)
    x += 1
</code></pre>