Project 4: Photo Dimensions Analyzer
Data Engineer
Builds on these lessons
Current Task
Objective
Every array has three fundamental properties: .ndim (number of dimensions), .size (total element count), and .shape (size along each dimension).
Task: create a 2D array of photo dimensions and print its ndim, size, and shape.
index.py
import numpy as np
photos = np.array([[1, 2, 3], [4, 5, 6]])
print(photos.ndim)
print(photos.size)
print(photos.shape)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview