Question: Following the previous question, now define a function that takes a list x and an integer n as inputs, and then return the n-th smallest
Following the previous question, now define a function that takes a list x and an integer n as inputs, and then return the n-th smallest number in list x. For example, if x=[1,2,3,10,23], and n = 4, then func(x,n)=10 because 10 is the 4th smallest number in x.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
