Introduction
We use raise to stop the program when something goes wrong. It helps us find and fix errors quickly.
When a function gets wrong or unexpected input.
When a file or resource is missing.
When a calculation or operation cannot continue safely.
When you want to tell the user or developer about a problem clearly.