- # Press ctrl + d
- $ python exceptions_handle.py
- Enter something --> Why did you do an EOF on me?
- # Press ctrl + c
- $ python exceptions_handle.py
- Enter something --> ^CYou cancelled the operation.
- $ python exceptions_handle.py
- Enter something --> No exceptions
- You entered No exceptions
|