#finds duplicate characters def duplicatecharacters(s:str): for i in s: if s.count(i)>1: return True return False print(duplicatecharacters(""))