Descending Order Sort Function

  • Share this:

Code introduction


This function takes a list as input and returns a new list sorted in descending order.


Technology Stack : Built-in function sorted

Code Type : Function

Code Difficulty : Intermediate


                
                    
def zsort_list(input_list):
    return sorted(input_list, reverse=True)