ARTICLE AD BOX
you can use sorted instead of sort:
print(sorted(score, reverse=True)[:3])OR
You can use below:
score.sort(reverse=True) print(score[:3])If you want to keep the original list order intact, go with sorted(). If you’re fine with modifying the list, use .sort()
