We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad7f054 commit 391e664Copy full SHA for 391e664
graphics/butterfly_pattern.py
@@ -14,14 +14,14 @@ def butterfly_pattern(n: int) -> str:
14
# Upper part
15
for i in range(1, n + 1):
16
left_stars = "*" * i
17
- spaces = " " * (2 * (n - i + 2))
+ spaces = " " * (2 * (n - i))
18
right_stars = "*" * i
19
result.append(left_stars + spaces + right_stars)
20
21
# Lower part
22
for i in range(n - 1, 0, -1):
23
24
25
26
27
0 commit comments