- Nov 18, 2007
- 12,068
- 1,159
- 126
So say I have a list L = [1,2,3,4] Now I pick a random number and delete it. L.remove(n) how would I check to be sure that n was in L? Is there a logic function I could use that would check the entire list?
Currently if n is not in L, then the program gives an error.
Currently if n is not in L, then the program gives an error.
