Answers for "how to make a leaderboard in python"

0

how to make a leaderboard in python

# leaderboard = []
f = open('Leaderboard.txt', 'r')
leaderboard = [line.replace('\n','') for line in f.readlines()]


for i in leaderboard:
    print(i)
Posted by: Guest on July-09-2020
0

how to create a leaderboard on python 3.8.1

myList = {"person1": 1, "person2": 1, "person3": 1}
myList["person2"] += 30
print(myList)
# {'person1': 1, 'person2': 31, 'person3': 1}
Posted by: Guest on July-09-2020

Code answers related to "how to make a leaderboard in python"

Python Answers by Framework

Browse Popular Code Answers by Language