Module even Problem 4 - Any/all, filtering, counting (5x5 points) For this problem, you should define all functions with

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Module even Problem 4 - Any/all, filtering, counting (5x5 points) For this problem, you should define all functions with

Post by answerhappygod »

Module Even Problem 4 Any All Filtering Counting 5x5 Points For This Problem You Should Define All Functions With 1
Module Even Problem 4 Any All Filtering Counting 5x5 Points For This Problem You Should Define All Functions With 1 (51.42 KiB) Viewed 42 times
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 ower each of the list elements (specifically, test if it's even). However, each rotums 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 define all of them correctly Problem 4.1 - even keep(): Should notum a new list, which contains only these numbers from the input list that are even Problem 4.2 - oven.drop(): Should retum a new list, which contains only these numbers from the input list that are not even Problem 4.3 - even allo): Should return true if all numbers in the input list are even, and also otherwise. Just to be clear, although you should not be confusing data types by this point, the returned value should be on Problem 4.4 - even any(): Should retum true if at lalone number in the input list is even, and Yine otherwise. As a reminder, what we ask you here is not the opposite of the previous problem
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply