Project 12: Product Feature Iterator
Data Engineer
Builds on these lessons
Current Task
Objective
Iterating a 2D array with a single for loop yields one row at a time — reaching individual scalars needs a nested loop.
Task: iterate a 2D features array with a nested loop, printing every individual item.
index.py
import numpy as np
features = np.array([['Fast', 'Reliable'], ['Secure', 'Simple']])
for row in features:
for item in row:
print(item)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview