# Write a program to print a pattern which contains triangle of alphabets.

def pattern7(n):
    ch = 65
    for i in range(1,n+1):
        num=ch
        for _ in range(1,n-i+1):
            print(' ',end='')
        for j in range(1,2*i):
            print(chr(num),end='')
            if(j<i):
                num=num-1
            else:
                num=num+1
        print()
        ch+=1
        
def main():
    n=eval(input('Enter the no of rows to print pattern: '))
    pattern7(n)
    
if __name__=='__main__':
    main()
        

24a9e160db89760489d9cde580a249e11188db4a
<mask token>

<mask token>


def main():
    n = eval(input('Enter the no of rows to print pattern: '))
    pattern7(n)


<mask token>

def pattern7(n):
    ch = 65
    for i in range(1, n + 1):
        num = ch
        for _ in range(1, n - i + 1):
            print(' ', end='')
        for j in range(1, 2 * i):
            print(chr(num), end='')
            if j < i:
                num = num - 1
            else:
                num = num + 1
        print()
        ch += 1


def main():
    n = eval(input('Enter the no of rows to print pattern: '))
    pattern7(n)


<mask token>

def pattern7(n):
    ch = 65
    for i in range(1, n + 1):
        num = ch
        for _ in range(1, n - i + 1):
            print(' ', end='')
        for j in range(1, 2 * i):
            print(chr(num), end='')
            if j < i:
                num = num - 1
            else:
                num = num + 1
        print()
        ch += 1


def main():
    n = eval(input('Enter the no of rows to print pattern: '))
    pattern7(n)


if __name__ == '__main__':
    main()

# Write a program to print a pattern which contains triangle of alphabets.

def pattern7(n):
    ch = 65
    for i in range(1,n+1):
        num=ch
        for _ in range(1,n-i+1):
            print(' ',end='')
        for j in range(1,2*i):
            print(chr(num),end='')
            if(j<i):
                num=num-1
            else:
                num=num+1
        print()
        ch+=1
        
def main():
    n=eval(input('Enter the no of rows to print pattern: '))
    pattern7(n)
    
if __name__=='__main__':
    main()
        
