id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

cse160-staff@cs.washington.edu cse160_22au_checkin03 > sum_grid
prev  |  next  |  chance

This problem will only make sense after reading the HW3 writeup. Return the sum of all the values in the given pixel_grid. The pixel_grid will always contain at least one value.


sum_grid([[5, 2, 3], [1, 5, 4]]) → 20
sum_grid([[1, 3], [3, 4], [15, 16], [9, 2]]) → 53
sum_grid([[100, 50]]) → 150

...Save, Compile, Run (ctrl-enter)

def sum_grid(pixel_grid):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy