String Concatenation with Separator

  • Share this:

Code introduction


Concatenates all elements of an iterable into a single string, separating elements with a specified separator.


Technology Stack : String, separator

Code Type : String Handling Function

Code Difficulty :


                
                    
def ajoin(iterable, separator=''):
    return separator.join(iterable)