Explore Library
Code QuizIntermediate

Creating a Blank Image Array

A NumPy array meant to be 100 wide and 200 tall has its dimensions in the wrong order.

Codepython
import numpy as np

# Create a black RGB image that is 100 px WIDE and 200 px TALL
img = np.zeros((100, 200, 3), dtype=np.uint8)
print(img.shape)

What is the bug in this code?