rearrange text

Daniel Skinner skinner.daniel at
Wed Mar 2 16:36:48 CET 2005

If I have the following text

var = '1,2,3,4'

and I want to use the comma as a field delimeter and rearrange the
fields to read


How would I accomplish this in python?

More information about the Python-list mailing list