Question: Question 2 45 points 25 mins Write a Python function called is_ordered( numlist, epsilon-le-6, is_ascending=True) that returns True if the numberic values in the provided

Question 2 45 points 25 mins Write a Python function called is_ordered( numlist, epsilon-le-6, is_ascending=True) that returns True if the numberic values in the provided list, numlist, are strictly sorted in ascending order, if is_ascending is True or in descending order it is_ascending is False The difference between two consecutive values must be larger than the epsilon value in order for those two values to be considered different. In other words, if the difference is less than epsilon , those two consecutive values must be considered identical. If two values are identical, then strict ordering should be considered broken. That is, the function should return false. If the input list contains less than 2 items, this function should return True. YOU MUST WRITE YOUR ANSWER IN THE FOLLOWING CODE CELL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
