Convert from numbers to letters

Gary Wilson Jr gdub at ece.utexas.edu
Thu May 19 16:39:32 EDT 2005


Gary Wilson Jr wrote:
> alpha = 'abcdefghijklmnopqrstuvwxyz'.upper()
> pairs = [x for x in alpha] + [''.join((x,y)) for x in alpha for y in alpha]

I forget, is string concatenation with '+' just as fast as join()
now (because that would look even nicer)?



More information about the Python-list mailing list