Skip to content

Commit a327b4d

Browse files
authored
sequence -> iterable in tutorial (#8067)
Very minor follow to #8066
1 parent cdc5e2f commit a327b4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tutorial.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import os
2222

2323

2424
def sum_even_numbers(numbers: Iterable[int]) -> int:
25-
"""Given a sequence of integers, return the sum of all even numbers in the sequence."""
25+
"""Given an iterable of integers, return the sum of all even numbers in the iterable."""
2626
return sum(num for num in numbers if num % 2 == 0)
2727
```
2828

@@ -61,7 +61,7 @@ Running `git diff` shows the following:
6161
-
6262

6363
def sum_even_numbers(numbers: Iterable[int]) -> int:
64-
"""Given a sequence of integers, return the sum of all even numbers in the sequence."""
64+
"""Given an iterable of integers, return the sum of all even numbers in the iterable."""
6565
return sum(num for num in numbers if num % 2 == 0)
6666
```
6767

@@ -184,7 +184,7 @@ from typing import Iterable # noqa: UP035
184184

185185

186186
def sum_even_numbers(numbers: Iterable[int]) -> int:
187-
"""Given a sequence of integers, return the sum of all even numbers in the sequence."""
187+
"""Given an iterable of integers, return the sum of all even numbers in the iterable."""
188188
return sum(num for num in numbers if num % 2 == 0)
189189
```
190190

@@ -206,7 +206,7 @@ from typing import Iterable
206206

207207

208208
def sum_even_numbers(numbers: Iterable[int]) -> int:
209-
"""Given a sequence of integers, return the sum of all even numbers in the sequence."""
209+
"""Given an iterable of integers, return the sum of all even numbers in the iterable."""
210210
return sum(num for num in numbers if num % 2 == 0)
211211
```
212212

0 commit comments

Comments
 (0)