An exception is handled with a try ... except ... finally statement. See the example in the previous section for more details.