Skip to content

Commit 67d865b

Browse files
authored
Fixed grammatical error in paragraph describing * with zip(). (#3992)
1 parent 64ce10d commit 67d865b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

concepts/unpacking-and-multiple-assignment/about.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ numbers = [1, 2, 3]
364364
1
365365
```
366366

367-
Using `*` unpacking with the `zip()` function is another common use case.
368-
Since `zip()` takes multiple iterables and returns a `list` of `tuples` with the values from each `iterable` grouped:
367+
Using `*` unpacking with the [`zip()` built-in][zip] is another common use case.
368+
The `zip()` function takes multiple iterables and returns a `list` of `tuples` with the values from each `iterable` grouped:
369369

370370
```python
371371
>>> values = (['x', 'y', 'z'], [1, 2, 3], [True, False, True])
@@ -383,3 +383,4 @@ Since `zip()` takes multiple iterables and returns a `list` of `tuples` with the
383383
[sorting algorithms]: https://realpython.com/sorting-algorithms-python/
384384
[unpacking]: https://www.geeksforgeeks.org/unpacking-arguments-in-python/?ref=rp
385385
[view-objects]: https://docs.python.org/3/library/stdtypes.html#dict-views
386+
[zip]: https://docs.python.org/3/library/functions.html#zip

exercises/concept/locomotive-engineer/.docs/introduction.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ numbers = [1, 2, 3]
351351
1
352352
```
353353

354-
Using `*` unpacking with the `zip()` function is another common use case.
355-
Since `zip()` takes multiple iterables and returns a `list` of `tuples` with the values from each `iterable` grouped:
354+
Using `*` unpacking with the [`zip()` built-in][zip] is another common use case.
355+
The `zip()` function takes multiple iterables and returns a `list` of `tuples` with the values from each `iterable` grouped:
356356

357357
```python
358358
>>> values = (['x', 'y', 'z'], [1, 2, 3], [True, False, True])
@@ -369,3 +369,4 @@ Since `zip()` takes multiple iterables and returns a `list` of `tuples` with the
369369
[sorting algorithms]: https://realpython.com/sorting-algorithms-python/
370370
[unpacking]: https://www.geeksforgeeks.org/unpacking-arguments-in-python/?ref=rp
371371
[view-objects]: https://docs.python.org/3/library/stdtypes.html#dict-views
372+
[zip]: https://docs.python.org/3/library/functions.html#zip

0 commit comments

Comments
 (0)