Pyramid
This Program name is Pyramid. Write a Python program to Pyramid, it has two test cases
The below link contains Pyramid question, explanation and test cases
https://drive.google.com/file/d/1KwCeEpWf99Y31ax5lohTDxrL4226ZzIJ/view?usp=sharing
We need exact output when the code was run
N = int(input())
for i in range(N):
a = i + 1
x = 1 + (2*i)
print('. '*(N-a)+ '0 ' * x+ '. '*(N-a))
Comments
Leave a comment