Answer to Question #221165 in Python for Hari nadh babu

Question #221165

Hollow Right Triangle


This Program name is Hollow Right Triangle. Write a Python program to Hollow Right Triangle, it has two test cases


The below link contains Hollow Right Triangle question, explanation and test cases


https://drive.google.com/file/d/1L2C5_Riggm3d_0ehaWeXsouPKlGyW-hb/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-07-31T07:44:00-0400
 rows = int(input("Enter Hollow Right Inverted Triangle Rows = "))


print("Hollow Inverted Right Triangle Star Pattern") 


i = rows
while(i > 0):
    j = rows
    while(j > 0):
        if i == rows or j == 1 or j == i:
            print('*', end = ' ')
        else:
            print(' ', end = ' ')
        j = j - 1
    i = i - 1
    print()

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