Set Multiplication using 3D Arrays || 3D Array || Python
In this we are going to see a basic program on set multiplication using 3D array in Python Programming Language.


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

arr2 = [[[16,18,13],[19,18,12],[11,14,16]],
        [[26,28,23],[29,28,22],[21,24,26]]]

res = [[x, y] for x in arr1 for y in arr2 if x != y]

for i in res:
    print(i)

# 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