백준 재귀 단계: 2447번 별 찍기 -10

코린이서현이·2024년 1월 9일
0

🛎️ 2447번 : 별찍기

정답 코드

문제 내용

아이디어

성공 or 실패?

성공 이유

중간 코드

def meke_list(total_n):
    total_list = []
    n = total_n//3
    for i in range(total_n):
        row = ["*"] * total_n
        total_list.append(row)
    return total_list

def star_recursion(a_list,total_n):
    n = total_n//3
    for i in range(n,n*2):
        a_list[i]
        for j in range(n,n*2):
            a_list[i][j] = " "
    return a_list

x1 = 9
a_list = meke_list(x1)
print(a_list)
b_list = star_recursion(a_list,x1)
print(b_list)
profile
24년도까지 프로젝트 두개를 마치고 25년에는 개발 팀장을 할 수 있는 실력이 되자!

0개의 댓글