We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28d6d03 commit 567f352Copy full SHA for 567f352
17-it-generator/columnize_iter.py
@@ -6,8 +6,8 @@ def columnize(
6
) -> Iterator[tuple[str, ...]]: # <1>
7
if num_columns == 0:
8
num_columns = round(len(sequence) ** 0.5)
9
- num_rows, reminder = divmod(len(sequence), num_columns)
10
- num_rows += bool(reminder)
+ num_rows, remainder = divmod(len(sequence), num_columns)
+ num_rows += bool(remainder)
11
return (tuple(sequence[i::num_rows]) for i in range(num_rows)) # <2>
12
# end::COLUMNIZE[]
13
0 commit comments