Skip to content

Instantly share code, notes, and snippets.

@squishykid
Created August 19, 2012 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squishykid/3393690 to your computer and use it in GitHub Desktop.
Save squishykid/3393690 to your computer and use it in GitHub Desktop.
week2_5
in_row = raw_input('Enter a row number: ')
in_row = int(in_row)
alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
row = []
output = ''
while in_row > 0:
in_rowa = in_row % 26
in_row = in_row - 26
row.append(alpha[in_rowa-1])
for i in row:
output += i
print output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment