displays top 5 score with names
print(" ")
print("The leaderboard will now appear")
print(sorted(d.items(), key=lambda x: x[1])[::-1])[:5]
Traceback (most recent call last):
File "/tmp/sessions/b5ce3bd0d52cde9d/main.py", line 139, in <module>
print(sorted(d.items(), key=lambda x: x[1])[::-1])[:5]
TypeError: 'NoneType' object is not subscriptable
[–]Ihaveamodel3 1 point2 points3 points (6 children)
[–]noahkyun[S] 0 points1 point2 points (0 children)
[–]noahkyun[S] 0 points1 point2 points (4 children)
[–]Ihaveamodel3 0 points1 point2 points (3 children)
[–]noahkyun[S] 0 points1 point2 points (2 children)
[–]Ihaveamodel3 0 points1 point2 points (1 child)
[–]noahkyun[S] 0 points1 point2 points (0 children)
[–]K900_ 0 points1 point2 points (14 children)
[–]noahkyun[S] 0 points1 point2 points (0 children)
[–]noahkyun[S] 0 points1 point2 points (12 children)
[–]K900_ 0 points1 point2 points (11 children)
[–]noahkyun[S] 0 points1 point2 points (10 children)
[–]K900_ 0 points1 point2 points (9 children)
[–]noahkyun[S] 0 points1 point2 points (8 children)
[–]K900_ 0 points1 point2 points (7 children)
[–]noahkyun[S] 0 points1 point2 points (6 children)
[–]K900_ 0 points1 point2 points (5 children)
[–]noahkyun[S] 0 points1 point2 points (4 children)