cinap_lenrekadd hg and python4bb9e2215 years agoHistory
19 lines · 392 B · Python
RawDownload
#! /usr/bin/env python # This Python program sorts and reformats the table of keywords in ref2.tex l = []try:    while 1:        l = l + raw_input().split()except EOFError:    passl.sort()for x in l[:]:    while l.count(x) > 1: l.remove(x)ncols = 5nrows = (len(l)+ncols-1)/ncolsfor i in range(nrows):    for j in range(i, len(l), nrows):        print l[j].ljust(10),    print