Exceptions in Python — try, except, raise and assert without complications
Python exceptions are the mechanism that lets a program handle unexpected situations without crashing. In FP1 you learned to prevent errors with if/else. In FP2 you go a step further — catching them when they happen and raising them yourself when needed. This article covers everything: try/except, specific and generic exceptions, finally, raise and assert….
