check if a number already exist in a list in python
Asked 2013-02-02T23:15:39.850
41
I am writing a python program where I will be appending numbers into a list, but I don't want the numbers in the list to repeat. So how do I check if a number is already in the list before I do list.append()?