input: Write a python function to create abbreviations for a list of words.
  assert word_abbreviations(["Hello","World","Amazing"]) == ['H4o', 'W4d', 'A5g']
  assert word_abbreviations(["Python","Function","Example"]) == ['P4n', 'F6n', 'E6e']
  assert word_abbreviations(["Test","Abbreviation","Success"]) == ['T2t', 'A10n', 'S5s']
output: def word_abbreviations(words):
      def abbreviate(word):
          if len(word) <= 2:
              return word
          return f'{word[0]}{len(word) - 2}{word[-1]}'
      
      return [abbreviate(word) for word in words]