Returns the "nth" letter, where nth is an integer. The 0th letter is 'A', the 1st letter is 'B', the 2nd letter is 'C', and so on.
(nth)
| 109 | |
| 110 | |
| 111 | def getNthLetter(nth): |
| 112 | """Returns the "nth" letter, where nth is an integer. The 0th letter |
| 113 | is 'A', the 1st letter is 'B', the 2nd letter is 'C', and so on.""" |
| 114 | return chr(nth + 65) # The ASCII value of 'A' is 65. |
| 115 | |
| 116 | |
| 117 | def getNumberForNthLetter(letter): |
no outgoing calls
no test coverage detected