def getEndsWithList(word, wordEndings):
 for wordEnding in wordEndings:
  if word.endswith(wordEnding):
   return True
 return False

def getEndsWithList ( word , wordEndings ) : for wordEnding in wordEndings : if word . endswith ( wordEnding ) : return True return False
determine if the word ends with a list .