Question: use python3 Define a function called quiz5 that takes an integer as an input parameter then returns True if the number is Even and False
Define a function called quiz5 that takes an integer as an input parameter then returns True if the number is Even and False if the number is odd. Define another function, quiz6, that takes a list of integers as an input parameter, and returns True if less than half of the integers in the list are Even and False if otherwise. Call the quiz 5 function within the quiz6 function. quiz6([3,4,5,2,7,8]) should return False since only 3 out of 6 of the numbers were even, and that is not less than half
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
