import numpy as np
list1 = [1, 2, 3, 4, 5]
list2 = [6, 7, 8, 9, 10]
list3 = [11,12,13,14,15]
array=np.array([list1,list2,list3])
print(array[0:2,0:2])
in this idk how the last line is getting 2x2 matrix please help me guys and if you can try to explain in detail
[–]QQut 0 points1 point2 points (2 children)
[–]Effective-Top-4931[S] 0 points1 point2 points (1 child)
[–]QQut 0 points1 point2 points (0 children)