convert string number to real number - ValueError: invalid literal for int() with base 10: '"2"'

SPGIMail at gmail.com SPGIMail at gmail.com
Fri Feb 29 16:32:15 EST 2008


> You have to get rid of the double quotes first.

you mean replace them with nothing?

li[4].replace('"','')

once i do that, i should be able to use them as numbers.



More information about the Python-list mailing list