Basic Operations on 3D Array || 3D Array || Python
In this we are going to see a basic program on basic operations on 3d array in Python Programming Language.


arr = [[[1,2,3],[4,5,6],[7,8,9]],
       [[9,8,7],[6,5,4],[3,2,1]]]


print("Before insering: \n",arr)

arr.insert(3,[[11,22,33],[33,22,11]])
print("After insering: \n",arr)

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

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

# Coded by Saahil

#ENJOY CODING


Post a Comment

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

Previous Post Next Post