본문 바로가기
-------------코딩-------------/Python 기초 코딩

별찍기(직각삼각형)

by 탶선 2020. 2. 8.
반응형
size = int(input("please input size"))

for i in range(size):
    print("*"*i)

size = int(input("please input size"))

for i in range(size,0,-1):
    print("*"*i)

 

반응형

'-------------코딩------------- > Python 기초 코딩' 카테고리의 다른 글

python 별찍기 (다이아몬드)  (0) 2020.03.18
벅스 일간차트 크롤링  (0) 2020.02.08
별찍기(정사각형)  (0) 2020.02.08
숫자야구 게임  (0) 2020.02.08
로또 번호 생성기  (0) 2020.02.08

댓글