Re: convert string number to real number - ValueError: invalid literal for int() with base 10: '"2"'
- From: "SPGIMail@xxxxxxxxx" <SPGIMail@xxxxxxxxx>
- Date: Fri, 29 Feb 2008 13:32:15 -0800 (PST)
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.
.
- References:
- Prev by Date: Re: How to subclass a built-in int type and prevent comparisons
- Next by Date: Re: why not bisect options?
- Previous by thread: Re: convert string number to real number - ValueError: invalid literal for int() with base 10: '"2"'
- Next by thread: Re: convert string number to real number - ValueError: invalid literal for int() with base 10: '"2"'
- Index(es):