Skip to content

Commit 295f57c

Browse files
committed
Iterators
1 parent 1c48ef6 commit 295f57c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ Itertools
934934
from itertools import *
935935
```
936936

937-
### Combinatoric iterators
937+
### Combinatoric Iterators
938938
```python
939939
>>> combinations('abc', 2)
940940
[('a', 'b'), ('a', 'c'), ('b', 'c')]
@@ -958,7 +958,7 @@ from itertools import *
958958
(1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1)]
959959
```
960960

961-
### Infinite iterators
961+
### Infinite Iterators
962962
```python
963963
>>> i = count(5, 2)
964964
>>> next(i), next(i), next(i)
@@ -1382,15 +1382,15 @@ def odds_handler(sport):
13821382

13831383
Profile
13841384
-------
1385-
#### Basic:
1385+
### Basic
13861386
```python
13871387
from time import time
13881388
start_time = time()
13891389
...
13901390
duration = time() - start_time
13911391
```
13921392

1393-
#### Times execution of the passed code:
1393+
### Timing a Snippet
13941394
```python
13951395
from timeit import timeit
13961396
timeit('"-".join(str(a) for a in range(100))',

0 commit comments

Comments
 (0)