...

Chapter 7 - Python Quest

Matrix Multiplication Prep

Rows, columns, dot products, one output cell, then the full grid.

XP
0Level 1
Stars
0/15quest stars
Combo
0clean runs
Rank
Seed0/160 Python score
Matrix warmup

Row Power Meter

100 XP

An arcade cabinet has one row of light squares. Each number says how bright one square is, and the repair kid wants the row's total power.

Write row_power(row) so it returns the sum of all numbers in one row.

Sample checks

row_power([2,3,4])returns9

Explanation: 2 + 3 + 4 = 9

row_power([])returns0

Explanation: an empty row has no numbers, so the total is 0

Hint

Hints are ready when you want one.

Lesson reference

Review: Rows are lists

Your Python

row_power

Loading editor

Judge

Ready

0/4

Run your code when it feels ready.