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
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
* * * * *
* * * *
* * *
* *
*
Comments
Leave a comment