check is character is int code example
Example 1: test if character is number python string
>>> 'A'.isdigit()
False
>>> '1'.isdigit()
True
Example 2: c check if char is number
char c = 'a'; // or whatever
if (isalpha(c)) {
puts("it's a letter");
} else if (isdigit(c)) {
puts("it's a digit");
} else {
puts("something else?");
}