how to check if letter is in code example
Example 1: how to check if a char is a letter java
Character.isDigit(string.charAt(index)) //(JavaDoc) will return true if it's a digit
Character.isLetter(string.charAt(index)) //(JavaDoc) will return true if it's a letter
Example 2: python check if character is letter
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False