Skip to content

Commit

Permalink
sequence -> iterable in tutorial (#8067)
Browse files Browse the repository at this point in the history
Very minor follow to #8066
  • Loading branch information
zanieb committed Oct 19, 2023
1 parent cdc5e2f commit a327b4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import os


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

Expand Down Expand Up @@ -61,7 +61,7 @@ Running `git diff` shows the following:
-

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

Expand Down Expand Up @@ -184,7 +184,7 @@ from typing import Iterable # noqa: UP035


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

Expand All @@ -206,7 +206,7 @@ from typing import Iterable


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

Expand Down

0 comments on commit a327b4d

Please sign in to comment.