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
you should convert your string to a list of string then do what you want. look
my_list="lamp, bag, mirror".split(',') my_list.remove('bag') my_str = ",".join(my_list)