using 2.5 . i have the following data from a field in a database:
2,870,728,641
the code is:
for line in reader:
preds.append(line[-1])
# what i get is: ['2,870,728,641']
# when i use join
linklist=string.join(preds)
predlist.append(linklist)
# i get the same thing
what i need is:
[2,870,728,641] without the beginning & ending quote so i can i can iterate each as a separte value/word:
preds[0] renders 2, pres[1] renders 870 etc
or
['2','870','728','641'] to get separate words also
i can't seem to find the answer
thanks
GMAN
2,870,728,641
the code is:
for line in reader:
preds.append(line[-1])
# what i get is: ['2,870,728,641']
# when i use join
linklist=string.join(preds)
predlist.append(linklist)
# i get the same thing
what i need is:
[2,870,728,641] without the beginning & ending quote so i can i can iterate each as a separte value/word:
preds[0] renders 2, pres[1] renders 870 etc
or
['2','870','728','641'] to get separate words also
i can't seem to find the answer
thanks
GMAN
Last edited: