You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog_files/pysheet.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1286,7 +1286,7 @@ From the Python 3 [documentation](https://docs.python.org/3/tutorial/datastructu
1286
1286
1287
1287
###Initializing a set
1288
1288
1289
-
There are two ways to create sets: using curly braces`{}` and thebult-in function`set()`
1289
+
There are two ways to create sets: using curly braces`{}` and thebuilt-in function`set()`
1290
1290
1291
1291
```python
1292
1292
>>> s= {1,2,3}
@@ -1417,7 +1417,7 @@ KeyError: 3
1417
1417
1418
1418
##itertools Module
1419
1419
1420
-
The_itertools_ module is acolection of toolsintented to be fast and use memory efficiently when handling iterators (like[lists](#lists) or[dictionaries](#dictionaries-and-structuring-data)).
1420
+
The_itertools_ module is acollection of toolsintended to be fast and use memory efficiently when handling iterators (like[lists](#lists) or[dictionaries](#dictionaries-and-structuring-data)).
1421
1421
1422
1422
From the official[Python 3.x documentation](https://docs.python.org/3/library/itertools.html):
1423
1423
@@ -2727,23 +2727,23 @@ The dot-star will match everything except a newline. By passing re.DOTALL as the
@@ -3505,7 +3505,7 @@ with open("filename.yaml") as f:
3505
3505
3506
3506
### Anyconfig
3507
3507
3508
-
[Anyconfig](https://pypi.python.org/pypi/anyconfig)is a very handy package allowing to abstractcompletly the underlying configurationfileformat. It allows to load a Python dictionaryfromJSON,YAML,TOML,and so on.
3508
+
[Anyconfig](https://pypi.python.org/pypi/anyconfig)is a very handy package allowing to abstractcompletely the underlying configurationfileformat. It allows to load a Python dictionaryfromJSON,YAML,TOML,and so on.
Often it’s the code that calls the function,not the function itself, that knows how to handle anexpection. So you will commonly see araise statement inside a functionand thetryandexcept statementsin the code calling the function.
3542
+
Often it’s the code that calls the function,not the function itself, that knows how to handle anexception. So you will commonly see araise statement inside a functionand thetryandexcept statementsin the code calling the function.