fix spelling
change from 'reminder' to 'remainder' to match intent
This commit is contained in:
parent
28d6d03315
commit
567f3529e3
@ -6,8 +6,8 @@ def columnize(
|
|||||||
) -> Iterator[tuple[str, ...]]: # <1>
|
) -> Iterator[tuple[str, ...]]: # <1>
|
||||||
if num_columns == 0:
|
if num_columns == 0:
|
||||||
num_columns = round(len(sequence) ** 0.5)
|
num_columns = round(len(sequence) ** 0.5)
|
||||||
num_rows, reminder = divmod(len(sequence), num_columns)
|
num_rows, remainder = divmod(len(sequence), num_columns)
|
||||||
num_rows += bool(reminder)
|
num_rows += bool(remainder)
|
||||||
return (tuple(sequence[i::num_rows]) for i in range(num_rows)) # <2>
|
return (tuple(sequence[i::num_rows]) for i in range(num_rows)) # <2>
|
||||||
# end::COLUMNIZE[]
|
# end::COLUMNIZE[]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user