(i)
return int2letter(d - 1) + int2letter(m)
Convert an integer to letters, to generate spreadsheet column id
  0=>A, 25=>Z, 26=>AA, 27=>AB, ...
Convert an integer to letters, to generate spreadsheet column id
  0=>A, 25=>Z, 26=>AA, 27=>AB, ...
Convert an integer to letters to generate spreadsheet column id 0 = > A 25 = > Z 26 = > AA 27 = > AB ...
def int2letter(i):
  """
  Convert an integer to letters, to generate spreadsheet column id
  0=>A, 25=>Z, 26=>AA, 27=>AB, ...
  """
  if i < 26:
    return (chr(i + ord('A')))
  d, m = divmod(i, 26)
  return int2letter(d - 1) + int2letter(m)
def int2letter ( i ) : if i < 26 : return ( chr ( i + ord ( 'A' ) ) ) d , m = divmod ( i , 26 ) return int2letter ( d - 1 ) + int2letter ( m )