Rearranging elements (cont..)
Marlin Rowley
marlin_rowley at hotmail.com
Fri May 16 19:21:37 EDT 2008
All:
Say I have an array:
a = (['rrrrggggbbbbaaaa'],['rrrrggggbbbbaaaa'])
How do I make it so that I now have:
starting with first element (a[0])
new_arr[0] = 'r'
new_arr[1] = 'g'
new_arr[2] = 'b'
new_arr[3] = 'a'
new_arr[4] = 'r'
.....
continuing "through" a[1] with the same new_arr
new_arr[N] = 'r'
new_arr[N+1] = 'g'
....
-M
_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080516/b11379aa/attachment-0001.html>
More information about the Python-list
mailing list