Simon Faulkner wrote: > I have a list of about 5000 numbers in a text file - up to 14 digits > each. > > I need to check for duplicates. > > What would people suggest as a good method? Use the numbers as keys for a dictionary. Before inserting, check if such an entry already exists. If this key exists already, you have found a duplicate. -- Gerhard