Character is Alphabet or Not in PYTHON - 👑 सार्थक मुंड S3 🤴🏻

Character is Alphabet or Not in PYTHON

Write a program (WAP) in PYTHON to read two numbers from keyboard(User Input) to know a character is Alphabet or Not.

ch = input("Enter a Character:\n ")
if((ch>='A' and ch<= 'Z') or (ch>='a' and ch<='z')):
    print(ch, "is an ALPHABET")
else:
    print(ch, "is not an ALPHABET")

Try it Yourself ➠

 

Output :-
When the above PYTHON program is compile and executed, it will produce the following result,

i. Alphabet - Uppercase

ii. Alphabet - Lowercase

iii. Not alphabet - Number

iv. Not alphabet - Special Character

Must Read :-
  1. Blogger Tutorial
  2. C Programs
  3. C++ Programs
  4. Java Programs
  5. Python Programs
  6. Programming Notes 
  7. Questions & Answers
  8. My Codes : HTML, CSS & JS
  9. All Subject Notes
Previous article
Next article

4 Comments to

Articles Ads

Articles Ads 1

Articles Ads 2

Advertisement Ads