code: def align_cell(fmt, elem, width):
      
      if fmt == "<":
          return elem + ' ' * (width - len(elem))
      if fmt == ">":
          return ' ' * (width - len(elem)) + elem
      return elem
docs: Returns an aligned element.