After seeing the difference between syntax errors and exceptions, you learned about various ways to raise, catch, and handle exceptions in Python.
In this course, you explored how to:
- Differentiate exceptions from syntax errors
- Use the assertkeyword to check if a certain condition is met
- Write custom exceptions that subclass Exception
- Catch exceptions with a try…exceptblock
- Use the additional keywords elseandfinally
- Catch built-in exceptions

 
       
        
aniketbarphe on Dec. 25, 2021
Thank You!