Project 6: Testimonials Rating Table
Data Engineer
Builds on these lessons
Current Task
Objective
2D array indexing uses [row, column] — the same convention as standard matrix notation.
Task: given a 2D testimonials array, print the rating at row 1 and the text at row 0.
index.py
import numpy as np
testimonials = np.array([["Great!", "5"], ["Good", "4"], ["Meh", "2"]])
print(testimonials[1, 0])
print(testimonials[0, 1])
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview