Re: newbie question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-1?Q?Gerhard_H=E4ring?=

    Re: newbie question

    sharon k wrote:
    hi all,
    >
    i am new to python.
    >
    i fetch a webpage with urllib, extract a few numbers in a format as follow;
    >
    10,884
    24,068
    >
    my question is how to remove the comma between the number, since i have
    to add them up later.
    Strings have a replace method. Calling replace(",", "") on the string
    will do the trick here.

    -- Gerhard

Working...