[Solved] how to find element that has no duplicate number? [closed]


You could simply use something like this:

import re
result = [x for x in numbers if !re.search(r"(.)\1", str(x))]

solved how to find element that has no duplicate number? [closed]