Answer to Question #221173 in Python for Hari nadh babu

Question #221173

Inverted Solid Right Triangle


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


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


https://drive.google.com/file/d/1YFU7WKt1VLzQJ6HEmvwToqs3_quADbZ8/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-08-02T07:15:59-0400
N = int(input('Enter integer here: '))
for i in range(0,N):
  print((' '*(2*i)) + (' *'  * (N-i)))

Enter integer here: 4
 * * * *
   * * *
     * *
       *
Enter integer here: 5
 * * * * *
   * * * *
     * * *
       * *
         *

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