Opposite of split
gherron at islandtraining.com
Sun Aug 15 20:35:15 CEST 2010
On 08/15/2010 11:24 AM, Alex van der Spek wrote:
> Looking for a method that does the opposite of 'split', i.e. elements
> in a list are automatically concatenated with a user selectable spacer
> in between e.g. '\t'. This is to prepare lines to be written to a
> sequential file by 'write'.
> All hints welcome.
> Alex van der Spek
Strings have a join method for this:
More information about the Python-list