Question: Write four (4) functions as indicated below: - is even accepts an integer as a parameter. It should return Boolean value True if that integer
Write four (4) functions as indicated below: - is even accepts an integer as a parameter. It should return Boolean value True if that integer is even, False otherwise, - sodd accepts an integer as a parameter. It should retum Boolean value True if that integer is odd, False otherwise - sumEvens accepts a Python list of integers as its parameter. It should calculate and return the sum of the even integers in the given list. (Hint use your earlier function isEven.) -sunodds works the same way, except it should return the sum of the odd Integers in the given list. Do not hard code any values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
