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
mylist = [("aaaa8"),("bb8"),("ccc8"),("ffffdffffd8")] print mylist j=0 for i in mylist: mylist[j]=i.rstrip("8") j+=1 print mylist