Please Criticize My Code

Jeff Schwab jeffrey.schwab at rcn.com
Sat Aug 20 16:49:24 EDT 2005


Christoph Rackwitz wrote:
> 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))
> 

Don't do that!



More information about the Python-list mailing list