Python Program to Print 54321-5432-543-54-5 Pattern
This program prints 54321-5432-543-54-5 pattern in Python programming language.
Python Source Code: 54321-5432-543-54-5 Pattern
# 54321-5432-543-54-5 Pattern
for i in range(1, 6):
for j in range(5, i-1,-1):
print(j, end="")
print()
Output
54321 5432 543 54 5