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/1wZHjOSToDFKleclnKLf2md1FclvO7EWq/view?usp=sharing
We need exact output when the code was run
n = int(input("Enter the number of rows"))
for i in range(0, n):
for j in range(0, i + 1):
print("* ", end="")
print()
for i in range(0, n):
for j in range(0, i + 1):
print("* ", end="")
print()
Comments
Leave a comment