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 52

Last Updated:

Python Number Pattern 52

Try to print the following number pattern using Python.

Print This Output
1
232
34543
4567654
567898765

Source Code

Python Compiler
for i in range(1, 6): m = i for j in range(1, i+1): print(m, end="") m += 1 m = m - 2 for k in range(1, i): print(m, end="") m -= 1 print()

Share this Page

Meet the Author