def getUniqueToken(word):
 uniqueString = '@#!'
 for character in uniqueString:
  if (character not in word):
   return character
 uniqueNumber = 0
 while True:
  for character in uniqueString:
   uniqueToken = (character + str(uniqueNumber))
   if (uniqueToken not in word):
    return uniqueToken
   uniqueNumber += 1

def getUniqueToken ( word ) : uniqueString = '@#!' for character in uniqueString : if ( character not in word ) : return character uniqueNumber = 0 while True : for character in uniqueString : uniqueToken = ( character + str ( uniqueNumber ) ) if ( uniqueToken not in word ) : return uniqueToken uniqueNumber += 1
get unique token .