I have a long string, which is basically a list like str=\"lamp, bag, mirror,\" (and other items)
str=\"lamp, bag, mirror,\"
I was wondering if I can add or subtract some items, i
How about this?:
def substract(a, b): return "".join(a.rsplit(b))