each line should have 3 star characters the last line should have 0 spaces at the beginning each line has 2 extra space character when compared to its next line python program
n, t = map(int, input("Enter your number: ").split())
side = '*' * n
for i in range(n):
space_line = ' ' * t * (n - i - 1)
print(space_line, side, sep='')
Comments
Leave a comment