程序代写代做代考 • minimum_of(numbers)

• minimum_of(numbers)
Input: numbers is a list of numbers (an item inside numbers can be None as well)
Output: returns the minimum number in numbers.
Notes:
• minimum_of MUST use the function fancy_min
• you cannot use the Python min() function
• if numbers is empty, return None
• if numbers is None, return None
• do not use sort or sorted

Create a function min_mid_max which takes a list as its formal parameter and returns a new list with the following characteristics:
• element 0 contains the minimum value
• element 1 contains the middle value (not the median — which would require an average of two elements if the list had an even number of elements). If the length of a list is even (e.g. [1,2,3,4]) the ‘middle’ value will be the right value of the two possible choices (e.g. 3 rather than 2). This rule is applied after the list is sorted.
• element 2 contains the maximum value

• Notes:
• You can only use Python syntax shown so far (even if you know more)
• You cannot use any math library (we have yet to see how to do this)
• You should use the function sorted. Remember the function sorted does not change its input, it returns a new list.
• You should only need to call sorted one time.
• You can use the function int (another built in function) to help determine the index of the middle value. This function takes a floating point (or any kind of number) and converts it into an integer (e.g. print(int(4.32)). This will allow you to treat lists with an even number of elements the same as a list with an odd number of elements.
• If min_mid_max is called with an empty list, return an empty list.
• If min_mid_max is called with 1 item, that item is the min, mid, and the max
• If min_mid_max is called with 2 items, the mid and the max should be the same
• No need to worry about the incoming list being the value None