You are viewing a single comment's thread. Return to all comments →
Just FYI Your code does not enter the except block even when the value is negative,you can use something like
else: raise Exception("n and p should be non-negative")
Day 17: More Exceptions
You are viewing a single comment's thread. Return to all comments →
Just FYI Your code does not enter the except block even when the value is negative,you can use something like