[Numpy-discussion] manipulating lists

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Mar 24 09:14:20 CDT 2009


Hi all,

How can I extract the numbers from the following list

['&', '-1.878722E-08,', '3.835992E-11', 
'1.192970E-03,-5.080192E-06']

It is easy to extract

>>> liste[1]
'-1.878722E-08,'
>>> liste[2]
'3.835992E-11'

but

>>> liste[3]
'1.192970E-03,-5.080192E-06'

How can I accomplish that ?

Nils


More information about the Numpy-discussion mailing list