Skip to main content

Posts

Showing posts with the label Write a Python program to check whether a character is alphabet or not.

ads1

Python Conditional , 7. Write a Python program to check whether a character is alphabet or not.

7. Write a Python program to check whether a character is alphabet or not. Solution:- alpha = input("Enter the Charater :- ") if((alpha >='a' and alpha<='z') or (alpha >='A' and alpha<='Z')):     print("It is Charater",alpha) else:     print("It is not Charater",alpha) Output :-      

ads2