Skip to content

Commit 77e5e86

Browse files
committed
Counter, frozenset
1 parent 9ba01b6 commit 77e5e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ value = <dict>.pop(key) # Removes item from dictionary.
8484
### Counter
8585
```python
8686
>>> from collections import Counter
87-
>>> colors = ['blue', 'red', 'blue', 'yellow', 'blue', 'red']
87+
>>> colors = ['red', 'blue', 'yellow', 'blue', 'red', 'blue']
8888
>>> counter = Counter(colors)
8989
Counter({'blue': 3, 'red': 2, 'yellow': 1})
9090
>>> counter.most_common()[0]
@@ -120,7 +120,7 @@ Set
120120
```
121121

122122
### Frozenset
123-
#### Is hashable so it can be used as a key in dictionary.
123+
#### Is hashable, meaning it can be used as a key in dictionary.
124124
```python
125125
<frozenset> = frozenset(<collection>)
126126
```

0 commit comments

Comments
 (0)