list problem

a.clarke11 a.clarke11 at pop.ntlworld.com
Mon Sep 23 19:10:22 EDT 2002


How about:

for item in x:
 while item:
  y.append(item.pop(0))
print'y=',y
?
hope this helps
Tony Clarke
Glasgow

jubafre at brturbo.com wrote:

> i have:
> x=[['0020', '0000x9'], ['0030', '0000xa'], ['00B4', '0000x8'], ['0030', '0000xb'], ['00F0'], ['0001'], ['0003'], ['0005']]
>
> and i want:
> y=['0020', '0000x9', '0030', '0000xa', '00B4', '0000x8', '0030', '0000xb','00F0', '0001',
> '0003', '0005']
>
> how to do this?
>
> Juliano Freitas
> www.gebrasil.hpg.com.br




More information about the Python-list mailing list