substSet = set() for i in range(len(searchWord)): for letter in range(ord(\'A\'), ord(\'[\')): foundWord = (searchWord[:i] + chr(letter) + searchWord[i+1