On Wed, Sep 28, 2011 at 11:22 PM, Neil Cerutti <ne...@norwich.edu> wrote: > I'd like to know what "string replacement" is supposed to mean in > the context of Python. >
Substring replacement, such as: >>> "Hello, world!".replace(", "," -- ") 'Hello -- world!' The str method doesn't accept a list, though, so it won't do simultaneous replaces. (At least, I don't think it can. Tried it only in Python 3.2 on Windows.) ChrisA -- http://mail.python.org/mailman/listinfo/python-list