+ 1
how to print the following pattern in python: 5#\n 45#\n 345#\n 2345#\n 12345
3 Answers
+ 1
for i in range(5,0,-1):
for j in range(i,6):
print(j,end='')
print()
0
print("5#\n 45#\n 345#\n 2345#\n 12345")
0
thanks for the answer ..i dint knew it was so easy