When would you use a try/except block in code?
You use try/except blocks so that none of your functions or methods return None.
try/except
None
You use try/except blocks so that you can demonstrate to your code reviewers that you tried a new approach, but if the new approach is not what they were looking for, they can leave comments under the except keyword.
except
You use try/except blocks inside of unit tests so that the unit testes will always pass.
You use try/except blocks when you want to run some code, but need a way to execute different code if an exception is raised.