Introduction
Exceptions happen when something unexpected goes wrong while a program runs. They stop the normal flow so the problem can be fixed or handled.
When reading a file that might not exist.
When dividing numbers and the divisor could be zero.
When converting user input to a number but the input might be wrong.
When accessing a list item that might be out of range.