Write a python program to enter any character. If the entered character is in lowercase then its convert into uppercase and vice versa.
PROGRAM:
a=input("Enter any character:")
if (a.isupper()):
print("It is in uppercase. It's lowercase is",str.lower(a))
if (a.islower()):
print("It is in lowercase. It's uppercase is",str.upper(a))
OUTPUT:
No comments:
Post a Comment