Chapter 7 - Python Quest
Matrix Multiplication Prep
Rows, columns, dot products, one output cell, then the full grid.
XP
0Level 1Stars
0/15quest starsCombo
0clean runsRank
Seed0/160 Python scoreMatrix warmup
100 XPRow Power Meter
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])returns9Explanation: 2 + 3 + 4 = 9
row_power([])returns0Explanation: 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
Run your code when it feels ready.
