Search found 1 match

by qut
Thu May 13, 2010 9:29 am
Forum: Challenges Solved
Topic: Lorem Ipsum
Replies: 34
Views: 3777

Perhaps not the shortest, but a nice solution: from string import maketrans text = open("lorem.txt").read() intab = "\n.," outtab = " " trantab = maketrans(intab, outtab) text = text.translate(trantab); worte = text.split(" ") for w in worte: z = text.count(w)...