f = open (FilePath, "r")
#print f
with open(FilePath, "r") as f:
lines = f.readlines()
#print lines
for iterms in lines:
new_file = iterms[::-1]
print new_file
it gives me a result like this: 7340.12,8796.4871825,0529.710635,751803.0,fit.69-81-63-40tuo
original list is like this: out04-32-45-95.tif,0.330693,536043.5237,5281852.0362,20.2260
it is supposed to be like this: 20.2260, ...........out04-32-45-95.tif
csvmodule, which will split it for you in a slightly more sophisticated way). Then you can reverse the list of strings before re-joining them with commas, rather than reversing a single string.