list_a-list_b

John nobody at nobody.com
Tue Apr 16 20:30:19 EDT 2002


Hi, I need a help in writing a function that does

list_a=[1,2,4], list_b=[2,4]
list_minus(list_a,list_b)
print list_a #will print out a=[1] after removing all elements ([2,4])
appearing in list_b

Thanks.






More information about the Python-list mailing list