Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 28d6d03 + 567f352 commit e7c182dCopy full SHA for e7c182d
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