String Alphabetical Sorter

  • Share this:

Code introduction


This function takes a string argument and returns a sorted string, where all characters are sorted in alphabetical order.


Technology Stack : String, Sorting

Code Type : String Handling Function

Code Difficulty :


                
                    
def a_to_z_sorter(input_string):
    return ''.join(sorted(input_string))                
              
Tags: