how to create a leaderboard on python 3 8 1

Solutions on MaxInterview for how to create a leaderboard on python 3 8 1 by the best coders in the world

showing results for - "how to create a leaderboard on python 3 8 1"
Lena
10 Nov 2018
1# leaderboard = []
2f = open('Leaderboard.txt', 'r')
3leaderboard = [line.replace('\n','') for line in f.readlines()]
4
5
6for i in leaderboard:
7    print(i)
Safiya
02 Aug 2019
1myList = {"person1": 1, "person2": 1, "person3": 1}
2myList["person2"] += 30
3print(myList)
4# {'person1': 1, 'person2': 31, 'person3': 1}
5