I have two lists, l1
and l2
. l1
is a list of many numbers separated by commas. l2
has a section of l1
.
l1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
l2 = [6, 7, 8, 9, 10]
I want l1
to become l1 = [1, 2, 3, 4, 5]
by directly removing l2
from l1
Can I do that without While XXX:
, For I in XXX:
, and Recursions?