Skip to content

Commit 33683bd

Browse files
committed
Counter
1 parent 00f41cb commit 33683bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ value = <dict>.pop(key) # Removes item from dictionary.
8383
```python
8484
>>> from collections import Counter
8585
>>> colors = ['blue', 'red', 'blue', 'yellow', 'blue', 'red']
86-
>>> Counter(colors)
86+
>>> counter = Counter(colors)
8787
Counter({'blue': 3, 'red': 2, 'yellow': 1})
88-
>>> <counter>.most_common()[0][0]
88+
>>> counter.most_common()[0][0]
8989
'blue'
9090
```
9191

@@ -134,7 +134,7 @@ to_exclusive = <range>.stop
134134
Enumerate
135135
---------
136136
```python
137-
for i, <el> in enumerate(<collection> [, i_start]):
137+
for i, element in enumerate(<collection> [, i_start]):
138138
...
139139
```
140140

0 commit comments

Comments
 (0)