Answer to Question #283324 in Python for Supriya

Question #283324

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

1
Expert's answer
2021-12-29T02:24:43-0500
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='')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS