Python program to print Pattern example 85

= 5  # size=5
px = n
py = n
for x in range(1, n + 1):
    for y in range(1, n * 2 + 1):
        if (== px or y == py):
            print(chr(px + 64), end="")  # 1
        else:
            print(" ", end="")
    px -= 1
    py += 1
    print()

    """
    5+64>> 69 >> ASCII of 'E'
    """

Output:
Patterns Programs

Subscribe For Daily Updates

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