Browse Source

Finally

pull/3/head
Jure Šorn 6 years ago
parent
commit
7cd7d7fe48
1 changed files with 14 additions and 1 deletions
  1. 15
      README.md

15
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 "<stdin>", line 2, in <module>
KeyboardInterrupt
```
Bytes
-----

Loading…
Cancel
Save