From 7cd7d7fe481a98ce95c8f8c6b9fba98972f18fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 26 Dec 2018 20:59:29 +0100 Subject: [PATCH] Finally --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4fd3d05..e68f6f2 100644 --- a/README.md +++ b/README.md @@ -758,11 +758,24 @@ while True: break ``` -#### Raise exception +#### Raising exception: ```python raise IOError("input/output error") ``` +#### Finaly: +```python +>>> try: +... raise KeyboardInterrupt +... finally: +... print('Goodbye, world!') +... +Goodbye, world! +Traceback (most recent call last): + File "", line 2, in +KeyboardInterrupt +``` + Bytes -----