[lang-ref] ( string_join_with_separator ) ( python )

def test_string_join_with_separator():
    # s.join(items)
    s1 = 'abc'
    s2 = 'def'
    s = ','.join([s1, s2])
    assert s == 'abc,def'