Answer to Question #301526 in Python for Vini

Question #301526

Given an integer N as a string number and K as input, write a program to print a number pyramid K rows


1
Expert's answer
2022-02-23T06:24:20-0500
start = int(input())
for k in range(int(input())):
    print(*[start + i for i in range(k + 1)])
    start += k + 1

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