diff python/a8e.py @ 82:a7857000e206

oops!
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 30 Jun 2010 09:45:03 -0700
parents 51a6ec0433f7
children
line wrap: on
line diff
--- 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:]):