Near as I can tell, you don't even need that test.

islower(), letter == '1', letter == '0' and letter == '5' all imply isascii!!