0
Help me end my game gracefully!
I've pretty much finished this part of my Ten Thousand game project. I'm stuck at the end, however. If more than one player finishes with over ten thousand points, I'd like to declare the one with the most points the winner. Duh. I'm having trouble sorting the list by the total_score attribute. Any other approach is of course welcome, too. As always, ways to make it better, faster, more pythonic are much appreciated! https://code.sololearn.com/cK8XHsL78SOQ/#py You'll need to copy this into your shell. It won't run in the playground.
1 Antwort
- 1
What do you mean "sort by"?