This artcie mentions small esample of handling exceptions in python
You can write a program such as sorting and processing exceptions. Please see the following example. In this example, but prompts the user for input until a valid string is entered, the user program (Control-C or using the operating system that supports key or some) programs over the interrupt We may be able to disrupt; user-generated interrupts, KeyboardInterrupt Please note that you will be notified that an exception is thrown.
>>> while [...]
Categories: Python

