Given an integer N as a string number and K as input, write a program to print a number pyramid K rows
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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment