Question #224588

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

Expert's answer

N = int(input())
for i in range(N):
  a = i + 1
  x = 1 + (2*i)
  print('. '*(N-a)+ '0 ' * x+ '. '*(N-a))

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!

LATEST TUTORIALS
APPROVED BY CLIENTS