'Refactored by Sourcery'

This commit is contained in:
Sourcery AI
2023-05-24 23:55:27 +00:00
committed by amjad
parent 7c1e336f14
commit 71d02673a9
70 changed files with 582 additions and 835 deletions

View File

@@ -16,10 +16,7 @@ def print_diamond(begin_width, end_width, step, width, count) -> None:
line_buffer = " " * ((width - n) // 2)
for across in range(count):
for a in range(n):
if a >= len(edge_string):
line_buffer += fill
else:
line_buffer += edge_string[a]
line_buffer += fill if a >= len(edge_string) else edge_string[a]
line_buffer += " " * (
(width * (across + 1) + (width - n) // 2) - len(line_buffer)
)
@@ -39,7 +36,7 @@ def main() -> None:
PAGE_WIDTH = 60
count = int(PAGE_WIDTH / width)
count = PAGE_WIDTH // width
for _down in range(count):
print_diamond(1, width, 2, width, count)