Scripting >> Python >> Examples >>  How to check for repeating characters in a string

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