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: docs/modules/itertools-module.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ description: The itertools module is a collection of tools intended to be fast a
7
7
Python Itertools Module
8
8
</base-title>
9
9
10
-
The _itertools_ module is a collection of tools intended to be fast and use memory efficiently when handling iterators (like [lists](#lists) or [dictionaries](#dictionaries-and-structuring-data)).
10
+
The _itertools_ module is a collection of tools intended to be fast and use memory efficiently when handling iterators (like <router-linkto="/cheatsheet/lists-and-tuples">lists</router-link> or <router-linkto="/cheatsheet/dictionaries">dictionaries</router-link>).
11
11
12
12
<base-disclaimer>
13
13
<base-disclaimer-title>
@@ -19,9 +19,7 @@ The _itertools_ module is a collection of tools intended to be fast and use memo
19
19
</base-disclaimer-content>
20
20
</base-disclaimer>
21
21
22
-
The _itertools_ module comes in the standard library and must be imported.
23
-
24
-
The [operator](https://docs.python.org/3/library/operator.html) module will also be used. This module is not necessary when using itertools, but needed for some of the examples below.
22
+
The _itertools_ module comes in the standard library and must be imported. Some examples also use the `operator` module.
25
23
26
24
```python
27
25
import itertools
@@ -511,3 +509,18 @@ Example:
511
509
# (None, 9)
512
510
# (None, 10)
513
511
```
512
+
513
+
## Relevant links
514
+
515
+
- <router-linkto="/cheatsheet/control-flow">Cheatsheet: Control Flow (for loops)</router-link>
516
+
- <router-linkto="/cheatsheet/lists-and-tuples">Cheatsheet: Lists and Tuples</router-link>
0 commit comments