List of strings to list of floats ?

Madhusudan Singh spammers-go-here at spam.invalid
Sun Oct 16 06:10:46 CEST 2005

Is it possible to convert a very long list of strings to a list of floats in
a single statement ?

I have tried float(x) and float(x[:]) but neither work. I guess I would have
to write a loop if there isn't a way.

More information about the Python-list mailing list