programmers | Lv1. 직사각형 별찍기 [Python]

yeonk·2022년 2월 4일
0

algorithm

목록 보기
1/88
post-thumbnail

💡 Python 3






🔗 문제

직사각형 별찍기 [Link]






💻 코드

# 내 코드
a, b = map(int, input().strip().split(' '))

for _ in range(b):
    print('*'*a)



# 참고 코드
a, b = map(int, input().strip().split(' '))
answer = ('*'*a +'\n')*b
print(answer)

0개의 댓글