Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7c182d

Browse files
authored
Merge pull request #45 from tudor38/fix-spelling
fix spelling
2 parents 28d6d03 + 567f352 commit e7c182d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

17-it-generator/columnize_iter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ def columnize(
66
) -> Iterator[tuple[str, ...]]: # <1>
77
if num_columns == 0:
88
num_columns = round(len(sequence) ** 0.5)
9-
num_rows, reminder = divmod(len(sequence), num_columns)
10-
num_rows += bool(reminder)
9+
num_rows, remainder = divmod(len(sequence), num_columns)
10+
num_rows += bool(remainder)
1111
return (tuple(sequence[i::num_rows]) for i in range(num_rows)) # <2>
1212
# end::COLUMNIZE[]
1313

0 commit comments

Comments
 (0)