Python Tutorial

Python Home

Python Methods

Python String Methods

Python Interview Programs

Python Common ProgramsPython Array ProgramsPython Converter ProgramsPython Star Patterns ProgramPython Number Patterns ProgramPython Alphabet Patterns Program

Python Reference

ASCII Table

Python Number Pattern 28

Last Updated:

Python Number Pattern 28

Try to print the following number pattern using Python.

Print This Output
0
909
89098
7890987
678909876
56789098765
4567890987654
345678909876543
23456789098765432
1234567890987654321

Source Code

Python Compiler
for i in range(10, 0, -1): for j in range(i, 10): print(j, end="") print("0", end="") for k in range(9, i-1, -1): print(k, end="") print()

Share this Page

Meet the Author