Skip to content

Commit a7ffc5c

Browse files
Update butterfly_pattern.py
1 parent de046d2 commit a7ffc5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

graphics/butterfly_pattern.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
def butterfly_pattern(n: int) -> str:
22
"""
33
Creates a butterfly pattern of size n and returns it as a string.
4+
5+
>>> butterfly_pattern(3)
6+
* *
7+
** **
8+
*****
9+
** **
10+
* *
411
"""
512
result = []
613

0 commit comments

Comments
 (0)