For this Question: Given a matrix of N*N dimensions (Mat). Print the matrix rotated by 90 degrees and 180 degrees.The first line contains N. 
N lines follow each containing N space-separated integers.

<b>Constraints</b>
2 <= N <= 100
1 <= Mat[i][j] <= 10000Output 2*N+1 lines. 
First N lines should contain the Matrix rotated by 90 degrees.
Then print a blank line.
Then N lines should contain the Matrix rotated by 180 degrees.Sample Input 1:
2
3 4 
7 6 

Sample Output 1:
7 3 
6 4 

6 7 
4 3

Sample Input 2:
2
1 2
3 4

Sample Output 2:
3 1
4 2

4 3
2 1, I have written this Solution Code: x=int(input())
l1=[]
for i in range(x):
	a1=list(map(int,input().split()))
	l1.append(a1)
for j in range(x):
	for i in range(1,x+1):
		print(l1[-i][j], end=" ")
	print()

print()

for i in range(1,x+1):
	for j in range(1,x+1):
		print(l1[-i][-j], end=" ")
	print(), In this Programming Language: Python, Now tell me if this Code is compilable or not?