Geek is very fond of patterns. Once, his teacher gave him a pattern to solve. He gave Geek an integer n and asked him to build a pattern.
Help Geek to build the pattern.
 
Example 1:
Input: 5
Output:
A
BB
CCC
DDDD
EEEEE
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

Source: geeksforgeeks | 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 + i), end='')
			print()


class Solution:

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


import string

class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

	def printTriangle(self, N):
		n = 65
		for i in range(N):
			print(chr(n) * (i + 1))
			n += 1


import string

class Solution:

	def printTriangle(self, N):
		alpha = string.ascii_uppercase
		for x in range(1, N + 1):
			print(alpha[x - 1] * x)


class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

	def printTriangle(self, N):
		for (x, z) in zip(range(1, N + 1), range(ord('A'), ord('Z') + 1)):
			for y in range(x):
				print(chr(z), end='')
			print('\r')


class Solution:

	def printTriangle(self, N):
		for i in range(1, N + 1):
			print(str(chr(64 + i) * i))


class Solution:

	def printTriangle(self, N):
		for x in range(1, N + 1):
			for y in range(x):
				print(chr(64 + x), end='')
			print()
		return


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']
		for i in range(N):
			print(a[i] * (i + 1))


class Solution:

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


class Solution:

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


import string

class Solution:

	def printTriangle(self, N):
		alphabets = list(string.ascii_uppercase)
		for i in range(0, N):
			for _ in range(0, i + 1):
				print(chr(65 + i), end='')
			print('\n', end='')


class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

	def printTriangle(self, N):
		ch = 65
		for i in range(1, 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):
		ch = 'A'
		for i in range(N, 0, -1):
			for k in range(N - (i - 1)):
				print(ch, end='')
			print()
			ch = chr(ord(ch) + 1)


import string

class Solution:

	def printTriangle(self, N):
		alphabets = list(string.ascii_uppercase)
		for i in range(0, N):
			for j in range(0, N):
				if j <= i:
					print(alphabets[i], end='')
				else:
					break
			print('\n', end='')


class Solution:

	def printTriangle(self, N):
		for j in range(N):
			print(chr(65 + j) * (j + 1))


class Solution(object):

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