Created
August 19, 2012 08:37
-
-
Save squishykid/3393690 to your computer and use it in GitHub Desktop.
week2_5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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