Operations on 2d Array in Python || 2D Array || Python

In this we are going to see a basic program to perform operations on 2D array in Python Programming Language.


from array import *

arr = [[1,3,5],[8,5,3],[1,7,4]]
print("Before insering: \n",arr)

arr.insert(3,[9,8,7])
print("After insering: \n",arr)

arr[0]=[6,5,4]
print("After Updating: \n",arr)

del(arr[1])
print("After Deleting: \n",arr)


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post