Ram is very fond of patterns. Once, his teacher gave him a pattern to solve. He gave Ram an integer n and asked him to build a pattern.
Help Ram build a pattern.
 
Example 1:
Input: 5
Output:
E
E D
E D C
E D C B
E D C B A
 
Example 2:
Input: 3
Output:
C
C B
C B A
Your Task:
You don't need to input anything. Complete the function printTriangle() which takes an integer n  as the input parameter and print the pattern.
Constraints:
	1<= N <= 20

Difficulty: EASY

Starter code:
#User function Template for python3



class Solution:

    def printTriangle(self, N):

        # Code here

Solutions:
class Solution:

	def printTriangle(self, N):
		for i in range(N):
			for j in range(i + 1):
				print(chr(65 + (N - j - 1)), end=' ')
			print('')


import string

class Solution:

	def printTriangle(self, N):
		l = string.ascii_uppercase
		for i in range(1, N + 1):
			for j in range(1, i + 1):
				print(l[N - j], end=' ')
			print('')


class Solution:

	def printTriangle(self, n):
		for i in range(n):
			for j in range(i + 1):
				print(chr(ord('A') + n - j - 1), end=' ')
			print()


class Solution:

	def printTriangle(self, N):
		for i in range(N):
			ch = chr(ord('A') + N - 1)
			for ch in range(ord(ch), ord(ch) - i - 1, -1):
				print(chr(ch), end=' ')
			print()


class Solution:

	def printTriangle(self, N):
		for i in range(N):
			value = ord('A') + N - 1
			for j in range(i + 1):
				print(chr(value), end=' ')
				value -= 1
			print()


class Solution:

	def printTriangle(self, N):
		for i in range(N):
			char = 65 + N - 1
			for a in range(i + 1):
				print(chr(char), end=' ')
				char -= 1
			print()


class Solution:

	def printTriangle(self, N):
		for i in range(0, N):
			start = chr(N + 64)
			for j in range(0, i + 1):
				print(start, end=' ')
				start = chr(ord(start) - 1)
			print()


class Solution:

	def printTriangle(self, N):
		for i in range(N):
			k = N
			for j in range(i + 1):
				print(chr(64 + k), end=' ')
				k -= 1
			print()


class Solution:

	def printTriangle(self, N):
		n = 65
		for i in range(N, 0, -1):
			for j in range(N, i - 1, -1):
				print(chr(j + 64), end=' ')
			print()


class Solution:

	def printTriangle(self, N):
		i = 0
		while i < N:
			j = 0
			while j <= i:
				print(chr(ord('A') + N - j - 1), end=' ')
				j += 1
			i += 1
			print()


class Solution:

	def printTriangle(self, N):
		letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
		for i in range(1, N + 1):
			for j in range(1, i + 1):
				print(letters[N - j], end=' ')
			print('')


class Solution:

	def printTriangle(self, n):
		for i in range(1, n + 1):
			for j in range(n, n - i, -1):
				print(chr(64 + j), end=' ')
			print()


class Solution:

	def printTriangle(self, N):
		a = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
		a = a[N - 1::-1]
		for i in range(N):
			print(*a[:i + 1])


class Solution:

	def printTriangle(self, N):
		num = 64
		for i in range(1, N + 1):
			for j in range(i):
				x = num + N - j
				print(chr(x), end=' ')
			print()


class Solution:

	def printTriangle(self, N):
		ascii_value = 65
		for i in range(1, N + 1):
			start = ascii_value + (N - 1)
			for j in range(0, i):
				print(chr(start - j), end=' ')
			print()


class Solution:

	def printTriangle(self, N):
		string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
		for i in range(N, 0, -1):
			for j in range(N, i - 1, -1):
				print(string[j - 1], end=' ')
			print()


class Solution:

	def printTriangle(self, n):
		for i in range(n):
			cnt = chr(65 + n - 1)
			for j in range(i + 1):
				print(cnt, end=' ')
				cnt = chr(ord(cnt) - 1)
			print('')


class Solution:

	def printTriangle(self, N):
		for i in range(1, N + 1):
			ch = 65 + N - 1
			for j in range(i):
				if j == i - 1:
					print(chr(ch))
				else:
					print(chr(ch), end=' ')
				ch -= 1


class Solution:

	def printTriangle(self, n):
		for i in range(1, n + 1):
			alpha = 65 + (n - 1)
			for j in range(1, i + 1):
				print(chr(alpha), end=' ')
				alpha -= 1
			print()


import string

class Solution:

	def printTriangle(self, N):
		alphabets = list(string.ascii_uppercase)
		for i in range(0, N):
			for j in range(0, i + 1):
				print(alphabets[N - 1 - j], end=' ')
			print('\n', end='')


class Solution:

	def printTriangle(self, N):
		for i in range(1, N + 1):
			ascii_value = ord('A') + N - 1
			for j in range(i):
				if j == i - 1:
					print(chr(ascii_value), end='\n')
				else:
					print(chr(ascii_value), end=' ')
				ascii_value -= 1


class Solution:

	def printTriangle(self, N):
		f = 65 + N - 1
		s = chr(f)
		for j in range(N):
			print(s)
			s += ' ' + chr(f - 1)
			f -= 1


class Solution(object):

	def printTriangle(self, N):
		for row in range(N):
			val = 65 + N - 1
			for col in range(row + 1):
				print(chr(val), end=' ')
				val -= 1
			print()


class Solution:

	def printTriangle(self, N):
		for row in range(N):
			for col in range(row + 1):
				print('{0} '.format(chr(65 + (N - col - 1))), end='')
			print()


class Solution:

	def printTriangle(self, N):
		i = 1
		while i <= N:
			j = 1
			st = ord('A') + N - 1
			while j <= i:
				t = chr(st - j + 1)
				print(t, end=' ')
				j += 1
			print()
			i += 1