Alphabetical String Sorter

  • Share this:

Code introduction


Sort the letters in the input string in alphabetical order and return the sorted string.


Technology Stack : String methods

Code Type : String processing

Code Difficulty :


                
                    
def aordnslc(s):
    """
    Sort the letters in a string in alphabetical order and return the sorted string.
    """
    return ''.join(sorted(s))                
              
Tags: