Concatenate and Sort Strings

  • Share this:

Code introduction


Concatenates two strings and then sorts them alphabetically.


Technology Stack : Built-in function sorted, lambda expression

Code Type : String sort

Code Difficulty : Intermediate


                
                    
def aaaa(arg1, arg2):
    return sorted(arg1 + arg2, key=lambda x: x.lower())