Answer to Question #235952 in Python for Meek

Question #235952

input an integer n and then draws a right angle isosceles triangle with asterisks of height n


1
Expert's answer
2021-09-11T07:03:40-0400
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?

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