Python program to print number Pattern 2

for x in range(1, 6):
    for y in range(1, 6):
        print(x, end="")
    print()

Output:
Patterns Programs

Subscribe For Daily Updates

100+ Python Pattern Examplespython pattern examples - star patterns, number patterns