Glossary · Python
What is Exception?
An error that happens while a program is running, which can be handled with try / except.
In more detail
Handling specific exceptions keeps programs from crashing on bad input or missing files.
Example
int("abc") raises ValueError.
Learn it properlyPython Files and Error Handling: Read, Write and Never Crash11 min lesson · Python