Tempo wrote:
> Hey. I am trying to grab the prices from the string below but I get a
> few errors when I try to do it: Take a look at the code and error
> messages below for me and thanks you in advanced to all that help.
> Thank you. Here's the code & error messages:
>
p
> [
>
On Thu, 2006-09-07 at 16:21 -0700, Tempo wrote:
> [
> $14.99
> ,
> $27.99
> ,
> $66.99
>
try str(p).split()[2]
your class is using the __str__ attribute to print and I am guessing
that is what you are seeing.
Tempo wrote:
> Hey. I am trying to grab the prices from the string below but I get a
> few errors when I try to do it: Take a look at the code and error
> messages below for me
Hey. I am trying to grab the prices from the string below but I get a
few errors when I try to do it: Take a look at the code and error
messages below for me and thanks you in advanced to all that help.
Thank you. Here's the code & error messages:
>>> p
[
$1