Answer to Question #281509 in Python for Om Trivedi

Question #281509

Print this pattern consider input as 4




1




1 3 1




1 3 5 3 1




1 3 5 7 5 3 1




1 3 5 3 1




1 3 1




1

1
Expert's answer
2021-12-21T06:17:30-0500
n = int(input())


for i in range(i):
    for j in range(i):
        print(2*i+1, end=" ")
    print()

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