>> what is the fastest way to determine whether list l (with >> len(l)>30000) contains a certain element? Either a sorted list (in conjunction with the bisect-module) or a dictionary is your friend... Regards, Marco