Please Criticize My Code

Christoph Rackwitz christoph.rackwitz at gmail.com
Sat Aug 20 18:59:27 CEST 2005


i guess, it is pythonchallenge.com level 10?
if so, i used this thing:

import re
def enc(s):
	return ''.join('%s%s' % (len(a[0]),a[0][0]) for a in
re.findall('((.)\\2*)', s))




More information about the Python-list mailing list