Please find the complete required Python script. The script contains a driver program that calls the maximum_odd function with a sample input list. This list can be modified as per the user requirement.
#==================================================================
# Given helper function
def is_odd(a_number):
return a_number % 2 == 1;
# Function to find the maximum odd number in the list
def maximum_odd(mylist):
max = 1; # Initialization
for i in range(len(mylist)):
if is_odd(mylist[i]):
if mylist[i]>max:
max=mylist[i];
return max;
# Main driver program
mylist = [1,2,33,47,25,6,7,76]; # Sample input
max_odd = maximum_odd(mylist);
print('The maximum odd number in the list is: ',max_odd);
#==================================================================
Sample output:
The maximum odd number in the list is: 47
Hope this helps! PLEASE THUMSB UP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Saved BlockPy: #33.8) Maximum Odd Use the Min/Max pattern to write a function maximum_odd that finds...
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...