exceptions_handle.txt 286 B

123456789101112
  1. # Press ctrl + d
  2. $ python exceptions_handle.py
  3. Enter something --> Why did you do an EOF on me?
  4. # Press ctrl + c
  5. $ python exceptions_handle.py
  6. Enter something --> ^CYou cancelled the operation.
  7. $ python exceptions_handle.py
  8. Enter something --> No exceptions
  9. You entered No exceptions