feat: Reverse star printing order
Co-authored-by: aider (gemini/gemini-2.5-flash) <aider@aider.chat>
This commit is contained in:
2
star.py
2
star.py
@@ -4,7 +4,7 @@ def print_increasing_stars(max_count: int = 10):
|
|||||||
"""
|
"""
|
||||||
별 모양을 1개부터 max_count까지 늘려가며 출력합니다.
|
별 모양을 1개부터 max_count까지 늘려가며 출력합니다.
|
||||||
"""
|
"""
|
||||||
for i in range(1, max_count + 1):
|
for i in range(max_count, 0, -1):
|
||||||
print("*" * i)
|
print("*" * i)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user