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
assert
keyword to check if a certain condition is met - Write custom exceptions that subclass
Exception
- Catch exceptions with a
try
…except
block - Use the additional keywords
else
andfinally
- Catch built-in exceptions
aniketbarphe on Dec. 25, 2021
Thank You!