Python program to print Pattern example 69

for x in range(5, 0, -1):
    for y in range(x, 5):
        print(" ", end="")
    for z in range(0, x):
        print("* ", end="")
    print()

# Another Logic

for x in range(5, 0, -1):
    for y in range(5, 0, -1):
        if x >= y:
            print("* ", end="")
        else:
            print(" ", end="")
    print()

Output:
Patterns Programs
Patterns Programs

Subscribe For Daily Updates

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