How to Sort a List of Numbers in Python
The challenge
Finish the solution so that it sorts the passed-in array/list of numbers. If the function passes in an empty array/list or null/None value then it should return an empty array/list.
Examples:
The solution in Python code
Option 1:
Option 2:
Option 3:
Test cases to validate our solution
|
|