[Tutor] how can I append a iteration to a tow dimensional array
Rayon
evosweet at hotmail.com
Sat Sep 19 21:05:58 CEST 2009
how can I append a iteration to a tow dimensional array
so that one value can be like a key in a dir.
I can't use a directory because some of the values repeat and the dir throws them out.
def getMark(record):
for x in record.split(','):
return str(x).strip()
array = []
for x in bigMethod():
array.append(getMark(x))
array1=[]
for count in array:
array1 = [[count],[x]]
for v in array1:
print v
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090919/21c9e8da/attachment.htm>
More information about the Tutor
mailing list