Array-2

Sat 17 May 2025

import numpy as np

x = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
#print(x)

x = x[1:7:5]
#print(x)

x = np.array([
            [
                [1],[2],[3]
            ], 
            [
                [4],[5],[6]
            ]
        ])
#print(x)
print(x.shape)
(2, 3, 1)


Score: 0

Category: array