'How to remove 1 element from 1 list and add to it into another one. Repeat this for the entire list
I have a List of element:
L = [1,2,3]
I would like to pop element from list L and add them to another list L2:
I am trying the following code:
for i in range(len(L)):
L2.append(L.pop())
But is not working
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
