I have a variable that can equal oh, let's say, the letter "A", the number "9" or an exclamation mark "!". Is there any way that I can ask the computer "Yo, computer! Is my variable a letter, a number, or a symbol?"

All I need right now is to be able to tell the difference between the letter and number, bu the symbol thing would be nice also.