Computer Science, asked by tanu9020, 3 months ago

Write a program to display the below pattern in python.
54321
4321
321
21
1​

Answers

Answered by notAnkur
1

for x in reversed(range(6)):

   for y in reversed(range(x)):

       print(y+1, end="")

   print()

Similar questions