Python Forum

Full Version: Code works but doesn't give the right results
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry, I didn't post the code right and problem was fixed in the meantime.

Thanks for all feedback.
Please make this more readable and add code into the code block.

# your code
Again please repost the code using the python code markers in the toolbar.
To get you started, In glicko2_rating_system() you have a for loop, for player in player_ratings. Add a print statement after that to see the contents of player. I think you will be surprised and see why the next line that follows fails to do what you think. If I'm wrong post your code in the format that will allow us to run it.