SyntaxFix
Write A Post
Hire A Developer
Questions
For Python 3:
ListOfStrings = [] ListOfStrings.append('foo') ListOfStrings.append('oof') for idx, item in enumerate(ListOfStrings): if 'foo' in item: ListOfStrings[idx] = "bar"