Given a number N. The task is to print a series of asterisk(*) from 1 till N terms with increasing order and difference being 1.
Example 1:
Input:
N = 3
Output:
* ** ***
Explanation:
First, print 1 asterisk then space after
that print 2 asterisk and space after that 
print 3 asterisk now stop as N is 3.
Example 2:
Input:
N = 5
Output:
* ** *** **** ***** 
Explanation:
First, print 1 asterisk then space after
that print 2 asterisk and space and do this
3 more times.
Your Task:  
You don't need to read input. Your task is to complete the function printPattern() which takes an integer N as an input parameter and print the above pattern.
Expected Time Complexity: O(N^2)
Expected Auxiliary Space: O(1)
Constraints:
1 <= N <= 1000

Source: geeksforgeeks | Difficulty: EASY

Starter code: #User function Template for python3

class Solution:
    def printPattern(self, N):
    	#code here 

Solutions:
class Solution:

	def printPattern(self, N):
		for i in range(N):
			for j in range(i + 1):
				print('*', end='')
			print(' ', end='')


class Solution:

	def printPattern(self, N):
		k = 1
		for i in range(0, N):
			print(k * '*', end=' ')
			k = k + 1


class Solution:

	def printPattern(self, N):
		for row in range(N):
			for col in range(row + 1):
				print('*', end='')
			print(end=' ')


class Solution:

	def printPattern(self, N):
		i = 1
		while i <= N:
			j = 1
			while j <= i:
				print('*', end='')
				j = j + 1
			print(' ', end='')
			i = i + 1


class Solution:

	def printPattern(self, N):
		for x in range(1, N + 1):
			for y in range(0, x):
				print('*', end='')
			print(end=' ')


class Solution:

	def printPattern(self, n):
		for i in range(1, n + 1):
			print('*' * i, end=' ')


class Solution:

	def printPattern(self, N):
		z = '*'
		j = 1
		while j <= N:
			print(z, end=' ')
			z = z + '*'
			j = j + 1