QUESTION DESCRIPTION
Write a program to check whether the given string contains the following:
1. input.isalpha() = check if all char in the string are alphabetic
2. input.isdigit() = test if string contains digits
3. input.istitle() = test if string contains title words
4. input.isupper() = test if string contains upper case
5. input.islower() = test if string contains lower case
Write a program to check whether the given string contains the following:
1. input.isalpha() = check if all char in the string are alphabetic
2. input.isdigit() = test if string contains digits
3. input.istitle() = test if string contains title words
4. input.isupper() = test if string contains upper case
5. input.islower() = test if string contains lower case
a=input()
print(a.isalpha())
print(a.isdigit())
print(a.istitle())
print(a.isupper())
print(a.islower())
Comments
Post a Comment