rearrange text

Daniel Skinner skinner.daniel at gmail.com
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

'1,3,2,4'

How would I accomplish this in python?




More information about the Python-list mailing list