Posts

Showing posts with the label Write a python program to enter any character. If the entered character is in lowercase then its convert into uppercase and vice versa.

Write a python program to enter any character. If the entered character is in lowercase then its convert into uppercase and vice versa.

Image
                                     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: Enter any character: A It is in uppercase. It's lowercase is a Enter any character: g It is in lowercase. It's uppercase is G