yet another ridiculously simple question, yet i feel compelled to ask because i've been stuck here for like an hour without it working
ok so say you have one list, a, and you need the user of the program to input a list of several more numbers, call that list b, then take out the numbers in b from a.
>>>a = [1,2,3,4,5,6,7,8,9,10,10,10] >>>b = input ("Enter numbers: ") [3,4,10] >>>#something here >>>print (a) [1,2,5,6,7,8,9,10,10]
so i try a bunch of stuff from the tutorial in like 100 different ways: a = a - b, for i in b: a.remove(i), a.remove(b)... yet i always get an error
it works with sets but i can't use sets because they keep throwing out the nonunique numbers (so like if you have [10,10,10] it would just make it )