Feb-09-2017, 11:23 AM
This is example how not to implement try/except - you catch all exceptions and provide a message that's not relevant.
you have
You should avoid using such catch-all exception clause, especially when you don't pass on the actual error description.
you have
s0xWins
note that second character is zero, not o on lineaverage_win = int(s0xWins/numberOfGames) * 100So your actual error is that s0xWins is used before assignment.
You should avoid using such catch-all exception clause, especially when you don't pass on the actual error description.