Question: Problem 2: Define a function with the following signature. def positiveEvenSum(L): Specification: The function takes as argument a list L of integers, which can be

Problem 2: Define a function with the following signature. def positiveEvenSum(L): Specification: The function takes as argument a list L of integers, which can be positive, negative or 0 . It returns the sum of all the positive integers in L that are even. Examples: positiveEvenSum( [6,7,1,14,3]) returns 14 positiveEvensum([70, 1,4,32]) returns 102 positiveEvensum([]) returns 0 positiveEvenSum ([6,7,1]) returns 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
