# HG changeset patch # User Jeff Hammel # Date 1277916303 25200 # Node ID a7857000e20650a20b438408ad04b377fb71bb3b # Parent 51a6ec0433f72a21fdf5e41c52afe161f36f50f9 oops! diff -r 51a6ec0433f7 -r a7857000e206 python/a8e.py --- a/python/a8e.py Wed Jun 30 09:34:46 2010 -0700 +++ b/python/a8e.py Wed Jun 30 09:45:03 2010 -0700 @@ -10,7 +10,7 @@ if len(word) < 4: retval.append(word) else: - retval.append(word[0] + '%d' % (len(word) - 2) + word[1]) + retval.append(word[0] + '%d' % (len(word) - 2) + word[-1]) return ' '.join(retval) def main(args=sys.argv[1:]):