def delimit(delimiters, content):
 if (len(delimiters) != 2):
  raise ValueError((u'`delimiters` must be of length 2. Got %r' % delimiters))
 return u''.join([delimiters[0], content, delimiters[1]])

def delimit ( delimiters , content ) : if ( len ( delimiters ) != 2 ) : raise ValueError ( ( u'`delimiters` must be of length 2. Got %r' % delimiters ) ) return u'' . join ( [ delimiters [ 0 ] , content , delimiters [ 1 ] ] )
surround content with the first and last characters of delimiters .