Every program meets things it did not expect: a file that is missing, a number that is not a number, a division by zero. Python’s way of reporting them is the exception. This lesson teaches you to read what Python tells you, to know the common exceptions by name, and to see how they fit together.
More lessons in Complete Python Programming