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
AB
ABC
ABCD
ABCDE
 
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 + j), end='')
			print('')


class Solution:

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


import string

class Solution:

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


class Solution:

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


import string

class Solution:

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


class Solution:

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


class Solution:

	def printTriangle(self, N):
		for i in range(1, N + 1):
			for y in range(i):
				print(chr(65 + y), 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 + 1], sep='')


class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

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


class Solution:

	def printTriangle(self, N):
		ch = 65
		for i in range(1, N + 2):
			ch = 65
			for j in range(1, 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(n):
			alpha = 65
			for j in range(i + 1):
				print(chr(alpha), end='')
				alpha += 1
			print()


class Solution:

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


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[j], end='')
				else:
					break
			print('\n', end='')


class Solution:

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


class Solution:

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


class Solution(object):

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