Pattern problem getting error in test cases. Please give me the solution. I'm getting output perfectly in pycharm or colab. Couldn't pass the test cases in codekata
Created 3 years ago
100
Views
2
Comments
Write a code to generate a half pyramid pattern using numbers.
Input Description:
Given an integer R indicates number of rows.
Where 1<=R<=100.
Output Description:
Print the number half pyramid pattern with the size R.
x=int(input())
a=0
for i in range(x+1):
for j in range(1,i+1):
print(a,end="")
a+=1
print()
Sample Input :
5
Sample Output :
1
22
333
4444
55555