NumPy multidimensional arrays are EASY!
Jul 24, 2025•Channel
AI Analysis
Data from YouTube Data API v3•Updated Just now
Video Overview
Video Details
Published10 months ago
Duration7:43
Video IDEnhgbolbEe0
Languageen
CategoryEducation
PrivacyPublic
Made for KidsNo
Video TypeRegular Video
Performance Metrics
Views6.5K
Likes477
Comments61
Engagement Rate8.27%
Likes per 100 views7.33
Comments per 1K views9.38
Description
#coding #python #numpy
import numpy as np
array = np.array([[['A', 'B', 'C'], ['D', 'E', 'F'], ['G', 'H', 'I']],
[['J', 'K', 'L'], ['M', 'N', 'O'], ['P', 'Q', 'R']],
[['S', 'T', 'U'], ['V', 'W', 'X'], ['Y', 'Z', ' ']]])
print(array.ndim) #returns number of dimensions
print(array.shape) #returns a tuple of integers that represent the shape
word = array[0, 0, 0] + array[2, 0, 0] + array[2, 0, 0]
print(word)