If I have a list of strings such as:
[(\"aaaa8\"),(\"bb8\"),(\"ccc8\"),(\"ffffdffffd8\")...]
What should I do in order to get rid of all the
A faster way is to join the list, replace 8 and split the new string:
mylist = [("aaaa8"),("bb8"),("ccc8"),("ffffdffffd8")] mylist = ' '.join(mylist).replace('8','').split() print mylist