12 lines
330 B
Python
12 lines
330 B
Python
# 별 모양을 1개부터 10개까지 늘려가며 출력합니다.
|
|
|
|
def print_increasing_stars(max_count: int = 10):
|
|
"""
|
|
별 모양을 1개부터 max_count까지 늘려가며 출력합니다.
|
|
"""
|
|
for i in range(max_count, 0, -1):
|
|
print("*" * i)
|
|
|
|
if __name__ == "__main__":
|
|
print_increasing_stars(10)
|