How do I create a leaderboard in python?
I am trying to create a leaderboard for python and cannot figure it out. I want the leaderboard to be sortable and in this format:
Score | Name
Can anyone help me?
Highwayman
Hm... what exactly are you having trouble with tho? Is it the sorting part? The saving part?
Hello. You can sort an array, then map the array, and finally join the array.
The code is going to be something like this:
Hopes this helps!
@Coder100 Thank you!
no problem! Happy to help! @DarshanRajpara1
@Coder100 Just one question:
What if I wanted it to save it to a file?
you can use file i/o lemme find it for ya @DarshanRajpara1