Optional: good to know Step 7 of 16 on the Python Developer roadmap
Raising your own errors
Use raise when a function receives something it cannot work with, such as a negative price. A clear error message makes the problem much faster to track down.