For this Question: Print the number of connected components using scipy csgraph1st line: Number of nodes
Next n lines: Adjacency matrixNumber of componetsInput: 
3
0 1 2
1 0 0
2 0 0

Output:
1, I have written this Solution Code: import numpy as np
from scipy.sparse.csgraph import connected_components
from scipy.sparse import csr_matrix
n=int(input())
arr=np.array([input().strip().split() for _ in range(n)],int)

newarr = csr_matrix(arr)

print(connected_components(newarr)[0]), In this Programming Language: Python, Now tell me if this Code is compilable or not?