Answer to Question #224588 in Python for Hari nadh babu

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

1
Expert's answer
2021-08-09T16:34:35-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS