PHP » PYTHON |
login |
register |
about
|
glue.join(pieces) alternatively way: reduce(lambda x,y: str(x) + glue + str(y), pieces) #example ' - '.join(['apple','banana','pear']) #example reduce(lambda x,y: str(x) + ' - ' + str(y), ['apple','banana','pear']) |
more
Recently updated
more
Most requested
|