Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago

Question

1. Identify and control your anxieties

Answered: 1 week ago