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 determine whether a person is eligible to vote.

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




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.