Question: CP 6 Pre - assignment Problem Define a function sumPositive ( int _ list ) : int _ list: A list of integers Return: The
CP Preassignment Problem
Define a function sumPositiveintlist:
intlist: A list of integers
Return: The variable possum, 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 :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
