input an integer n and then draws a right angle isosceles triangle with asterisks of height n
n = int(input()) if n >= 1: print('*') for i in range(1, n-1): print('*' + ' '*(i-1) + ' *') print('* '*n)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment