undo add element in list python code example
Example 1: removing an item from a list and adding it to another list python
item = 'b'
firstlist.remove(item)
secondlist.append(item)
Example 2: removing an item from a list and adding it to another list python
secondlist.append(firstlist.pop(1))