n = int(input()) for i in range(1, n+1): print(' '*(n-i)+'*'*i)
여기서
print(' '*(n-i), '*'*i)
를 할 경우 ,때문에 띄어쓰기가 한번 더 추가된다.
,