Check the Functions

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 Test Case 1 Input (stdin) ELAB Expected Output True False False True False Test Case 2 Input (stdin) Elab Expected Output True False True False False

Program :

str1=input()

print(str1.isalpha())

print(str1.isdigit())

print(str1.istitle())

print(str1.isupper())

print(str1.islower())