468,471 Members | 1,733 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,471 developers. It's quick & easy.

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;


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

Aug 25 '08 #1
0 913

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Elger | last post: by
16 posts views Thread by Raxit | last post: by
5 posts views Thread by Randall | last post: by
12 posts views Thread by Philipp.Weissenbacher | last post: by
5 posts views Thread by Dave | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.