Inverted alphabet program in python using for loop

Inverted alphabet program in python using for loop. Python programming language alphabet pattern software. This program outputs the pattern program in alphabetical order. This software is similar to the previous one, but it has some added value for users who want to print it.

lines = 3
for i in range(lines, 0, -1): 
for j in range(1, i + 1, 1): 
print(chr(ord('A') - 1 + i), 
end = ' ') 
print() 
Output:
J J J J J J J J J J
I I I I I I I I I H H H H H H H H