0% found this document useful (0 votes)
4 views2 pages

Python Character Type Checker Program

The document presents a Python program designed to check the type of character input by the user, categorizing it as an uppercase letter, lowercase letter, digit, whitespace, or special character. It includes a problem statement, objective, explanation, source code, and sample outputs for various character inputs. The program aims to enhance understanding of character classification in Python.

Uploaded by

adithapa129
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Python Character Type Checker Program

The document presents a Python program designed to check the type of character input by the user, categorizing it as an uppercase letter, lowercase letter, digit, whitespace, or special character. It includes a problem statement, objective, explanation, source code, and sample outputs for various character inputs. The program aims to enhance understanding of character classification in Python.

Uploaded by

adithapa129
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Student name- Sachin Page no-6

Roll no- 48 D.O.P-19/09/2025


Course- BCA AI&DS

PROBLEM STATEMENT 6- Write a python program to check the type of


entered character from the user.
OBJECTIVE- To understand the implementation of entered character from the
user.
EXPLANATION- Identifying the category of the character that a user provides
as input.
SOURCE CODE-
ch = input("Enter a character: ")

if [Link]():
if [Link]():
print("The entered character is an Uppercase Alphabet.")
else:
print("The entered character is a Lowercase Alphabet.")
elif [Link]():
print("The entered character is a Digit.")
elif [Link]():
print("The entered character is a Whitespace character.")
else:
print("The entered character is a Special character.")
Student name- Sachin Page no-6
Roll no- 48 D.O.P-19/09/2025
Course- BCA AI&DS

OUTPUT-
Enter a character: A
The entered character is an Uppercase Alphabet.
Enter a character: z
The entered character is a Lowercase Alphabet.
Enter a character: 5
The entered character is a Digit.
Enter a character:
The entered character is a Whitespace character.
Enter a character: @
The entered character is a Special character.

You might also like