the sorted function will return new sorted list from an iterable. The list.sort() function can be used to sort the list in ascending and descending order and takes the argument reverse, which is by default false and, if passed true, then sorts the ...