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

AI Roadmap using Python

Python is a great foundation for diving into AI! To take the next step in your AI learning journey, here’s a roadmap to guide you. 1. Strengthen Your Math Skills

Create new Python Virtual environment

Create a new virtual environment  Python 3 allows you to manage separate package installations for different projects. It creates a “virtual” isolated Python installation. When you switch projects, you can

Explain about Hugging Face Transformers

Hugging Face Transformers is a powerful library designed for natural language processing (NLP), computer vision, and audio tasks. It provides state-of-the-art pretrained models and tools for fine-tuning and deploying these