Add something into a list and delete other things python code example
Example 1: removing an item from a list and adding it to another list python
secondlist.append(firstlist.pop(1))
Example 2: removing an item from a list and adding it to another list python
item = 'b'
firstlist.remove(item)
secondlist.append(item)