code: def remove_all_gap_columns( texts ):
      
      seqs = [ list( t ) for t in texts ]
      i = 0
      text_size = len( texts[0] )
      while i < text_size:
          all_gap = True
          for seq in seqs:
              if seq[i] not in ( '-', '#', '*', '=', 'X', '@' ): 
                  all_gap = False
          if all_gap:
              for seq in seqs: 
                  del seq[i]
              text_size -= 1
          else:
              i += 1
      return [ ''.join( s ) for s in seqs ]
docs: Remove any columns containing only gaps from alignment texts