def getRightStripAlphabetPercent(word):
 word = word.strip()
 for characterIndex in xrange((len(word) - 1), (-1), (-1)):
  character = word[characterIndex]
  if ((not character.isalpha()) and (not (character == '%'))):
   return float(word[:(characterIndex + 1)])
 return None

def getRightStripAlphabetPercent ( word ) : word = word . strip ( ) for characterIndex in xrange ( ( len ( word ) - 1 ) , ( - 1 ) , ( - 1 ) ) : character = word [ characterIndex ] if ( ( not character . isalpha ( ) ) and ( not ( character == '%' ) ) ) : return float ( word [ : ( characterIndex + 1 ) ] ) return None
get word with alphabet characters and the percent sign stripped from the right .