Question: BlockPy: #33.8) Maximum Odd Use the Min/Max pattern to write a function maximum_odd that finds the highest odd value in the list (consumes a list
BlockPy: #33.8) Maximum Odd Use the Min/Max pattern to write a function maximum_odd that finds the highest odd value in the list (consumes a list of numbers and returns a number). Use the provided helper function is_odd (that consumes a single number and returns a boolean indicating whether it is true or false). Do not change the helper function is odd. Call your maximum_odd function on your favorite list of numbers Console Feedback: Instructor Feedback You cannot use the builtin function len (builtin_use) Blocks ++Split | / Text | .0 Reset 1 def is_ odd (a_number): 3 def maximum_old(a_list): Run O Upload History return a-number % 2 1 4 for i in range(len(1st)): if is_odd(1st[i]): if maxValue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
