how to remove item from a list and add to another list 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))