Question: CP 6 Pre - assignment Problem Define a function sumPositive ( int _ list ) : int _ list: A list of integers Return: The

CP 6 Pre-assignment Problem
Define a function sumPositive(int_list):
int_list: A list of integers
Return: The variable pos_sum, the sum of only the positive integers in said list.
In [] :
Create test cases for this code to ensure it functions accordingly.
Please comment out the test cases before submitting.
In []:
 CP 6 Pre-assignment Problem Define a function sumPositive(int_list): int_list: A list

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!