Convert from numbers to letters
Dan Sommers
me at privacy.net
Thu May 19 10:24:27 EDT 2005
On 19 May 2005 06:56:45 -0700,
"rh0dium" <sklass at pointcircle.com> wrote:
> Hi All,
> While I know there is a zillion ways to do this.. What is the most
> efficient ( in terms of lines of code ) do simply do this.
> a=1, b=2, c=3 ... z=26
(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) = range( 1, 27 )
> Now if we really want some bonus points..
> a=1, b=2, c=3 ... z=26 aa=27 ab=28 etc..
It's still one line, following the pattern from above, just longer.
Now why do you want to do this?
Regards,
Dan
--
Dan Sommers
<http://www.tombstonezero.net/dan/>
More information about the Python-list
mailing list