finding and replacing elements in a list (python)

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-04-06T01:30:18Z Indexed on 2010/04/06 1:33 UTC
Read the original article Hit count: 214

Filed under:
|
|

Hey

I have to search through a list and replace all occurrences of one element with another. I know I have to first find the index of all the elements, and then replace them, but my attempts in code are getting me nowhere. Any suggestions?

© Stack Overflow or respective owner

Related posts about python

Related posts about list