Geek is very fond of patterns. Once, his teacher gave him a square pattern to solve. He gave Geek an integer n and asked him to build a pattern.
Help Geek to build a star pattern.
 
Example 1:
Input: 5
Output:
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
 
Your Task:
You don't need to input anything. Complete the function printSquare() 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 printSquare(self, N):

        # Code here

Solutions:
class Solution:

	def printSquare(self, n):
		for i in range(n):
			for j in range(n):
				print('*', end=' ')
			print()


class Solution:

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


class Solution:

	def printSquare(self, N):
		if N <= 20 or N >= 1:
			for i in range(N):
				for j in range(N):
					print('*', end=' ')
				print()
		else:
			print()


class Solution:

	def printSquare(self, N):
		for i in range(0, N):
			print('* ' * N)


class Solution:

	def printSquare(self, N):
		for i in range(N):
			stars = '* ' * N
			print(stars)


class Solution:

	def printSquare(self, N):
		for x in range(N):
			print('* ' * N)


class Solution:

	def printSquare(self, N):
		for element in range(N):
			print('* ' * N)


class Solution:

	def printSquare(self, N):
		for _ in range(N):
			for _ in range(N):
				print('*', end=' ')
			print()


class Solution:

	def printSquare(self, N):
		for i in range(N):
			for z in range(N):
				print('*', end=' ')
			print('')


class Solution:

	def printSquare(self, N):
		for i in range(N):
			str = ' '.join('*' * N)
			print(str)


class Solution:

	def printSquare(self, N):
		line_star = '* ' * N
		for _ in range(0, N):
			print(line_star)


class Solution:

	def printSquare(self, N):
		for x in range(N):
			for y in range(N):
				print('*', end=' ')
			print('')


class Solution:

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


class Solution:

	def printSquare(self, N):
		for i in range(1, N + 1):
			s = '* ' * N
			print(s)


class Solution:

	def printSquare(self, N):
		for row in range(N):
			print('* ' * N)


class Solution:

	def printSquare(self, N):
		a = '* '
		a = a * N
		for i in range(N):
			print(a)


class Solution:

	def printSquare(self, N):
		for i in range(N):
			print('* ' * N, sep='  ')