Solid Right Angled Triangle - 2
This Program name is Solid Right Angled Triangle - 2. Write a Python program to Solid Right Angled Triangle - 2, it has two test cases
The below link contains Solid Right Angled Triangle - 2 question, explanation and test cases
https://drive.google.com/file/d/1FoDyc8wQxsu918bAHA-Va4WSfPZTSZ9e/view?usp=sharing
We need exact output when the code was run
n = int(input())
for i in range(n):
print((' '.join(['*'] * (i + 1))).rjust(2 * n - 1))
Comments
Leave a comment