Question: DS 2 5 0 0 Spring 2 0 2 4 PPP 1 Deadline: January 1 9 th , 2 0 2 4 @ 9 :

DS2500
Spring 2024
PPP1
Deadline: January 19th,2024 @ 9:30am
PPPs are autograded, so the specs must match exactly
We do not accept late submissions, but we drop 2 PPPs (out of 6 total)
Filename: ppp_1.py
Write the following function:
* Name: sum_column
* Parameter: 2d list of anything, int for column number - optional
If no column number given, use 0
(data type in that column must be numeric)
* Returns: sum of all values in the given column
For example:
Given [[3,5,7],[10,10,10]],1 your function should return 15
Given [[3,5,7],[10,10,10]],2 your function should return 17
Given [[3,5],[5,8],[0,-1]] your function should return 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!