Below is the program to check whether the given character is an uppercase or lowercase letter or a digit or a special character.


inputChar = input("Enter any character : ")
if inputChar.isupper():
    print(str(inputChar) + " character is uppercase letter")
elif inputChar.islower():
    print(str(inputChar) + " character is Lower letter")
elif inputChar.isdigit():
    print(str(inputChar) + " character is digit ")
else:
    print(str(inputChar) + " character is a special character ")
Python program to check uppercase or lowercase letter 

Output:

Python program to check uppercase or lowercase letter 
Python program to check uppercase or lowercase letter 
Python program to check uppercase or lowercase letter 
Python program to check uppercase or lowercase letter 

Explore More

f-strings in Python

Python offers a powerful feature called f-strings (formatted string literals) to simplify string formatting and interpolation. f-strings is introduced in Python 3.6 it provides a concise and intuitive way to embed expressions and variables

Input and Output in Python

Understanding input and output operations is fundamental to Python programming. With the print() function, you can display output in various formats, when the input() function/method enables interaction with users by gathering

Python tutorials

We are starting a Python Tutorials Series for Beginners and Professionals. In these Python Tutorials, we will cover all the features of Python. You will learn from basic to advanced-level features