HasRepeatingChars=False Sting=input() for c in String: if(String.count(c) > 1): HasRepeatingChars = True