Python Top-Down V Column-Letter Pattern (Pattern 85)

Python Code
n = 5  # size=5
px = n
py = n
for x in range(1, n + 1):
    for y in range(1, n * 2 + 1):
        if (y == 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:

Output of the Python Top-Down V Column-Letter Pattern pattern
BEGINNER WALKTHROUGH

How the Top-Down V Column-Letter Pattern works

A widening pair of diagonals is labeled using the moving left-column position converted to a letter.

01

Build the rows

The outer loop prints five rows, while px and py track the two diagonal positions across eleven columns.

02

Choose what each row prints

The matching condition prints chr(px + 64); the remaining positions are spaces, making the V shape visible.

03

Keep the output aligned

The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.