Exceptions are errors thrown by Python when we try to do something which we are not allowed to or is not possible to. We have already seen exceptions in previous chapters when we try to access a key that does not exist in a dictionary.
We get similar errors when we try the following: