isalpha code example
Example 1: isalpha c
#include <stdio.h>
#include <ctype.h> //this is isalpha's library
int main(void)
{
string variable0 = "a";
if (isalpha(variable1))
{
printf("this will print");
}
string variable1 = 1;
if (isalpha(variable1))
{
printf("this will NOT print");
}
}
Example 2: isaplha in python
str = "abc"
print(str.isalpha())
Example 3: isalpha c++
char test='a';
cout<<isalpha(test);