Data Structures, Data Engineering, Arrays, Algorithms, Data Science.
[[1, 9, 3], [4, 5, 6], [7, 8, 2]] Swapping two rows in a 3D array: three_d_array[0][0][1], three_d_array[2][1][0] = three_d_array[2][1][0], three_d_array[0][0][1] print(three_d_array) # Output: [[[1, 11], [3, 4]], [[5, 6], [7, 8]], [[9, 2], [11, 12]]] Traversal: For a 2D array, nested loops are