Python Numpy Shape Function Contoh Memverifikasi Nilai Dimensi Terakhir

# Welcome to softhunt.net
import numpy as npy
 
# creating an array of 6 dimension
# using ndim
arr = npy.array([6, 3, 5, 6, 12, 2], ndmin=7)
 
# printing array
print(arr)
 
# verifying the value of last dimension
print('shape of an array :', arr.shape)
Outrageous Ostrich