class Different: def checkDifferent(self, iniString): # write code here for i in range(len(iniString)-1): for j in range(i+1,len(iniString)): if iniString[j]==iniString[i]: return False return True