Module even Problem 4 - Any/all, filtering, counting (5x5 points] For this problem, you should define all functions with
Posted: Sat May 14, 2022 4:30 pm
Module even Problem 4 - Any/all, filtering, counting (5x5 points] For this problem, you should define all functions within the even library module. All functions in this problem should accept the same kind of argument: a list of integers. Furthermore, all functions that we ask you to define perform the same condition test over each of the list elements (specifically, test if it's even). However, each returns a different kind of result (as described below). Finally, once again one of the functions should modify their input list in any way. Remark: Although we do not require you to re-use functions in a specific way, you might want to consider doing so, to simplify your overall effort. You may define the functions in any order you wish (ie, the order does not necessarily have to correspond to the sub-problem number), as long as you detine all of them corectly
the negation of "all even" is "at least one not even" Problem 4.5 - even.count(): Should return an integer that represents how many of the numbers in the input list are even un ir similar to the oppositive function from the previous assignment TL
the negation of "all even" is "at least one not even" Problem 4.5 - even.count(): Should return an integer that represents how many of the numbers in the input list are even un ir similar to the oppositive function from the previous assignment TL