Interesting python code

                                 Python Interesting Code...

My Channel Link: (5) Technical Sosa - YouTube

copy and paste this code.. 

👇👇👇

print("1. To change the first letter of all words into captital.")
print("2. To capitalize the first letter of your data.")
print("3. To change your data into uppercase.")
print("4. To change your data into lowercase.")
print()

select = int(input("Select any one option: "))
if select == 1:
    user1 = input("Enter your data: ")
    print("Your output is: ")
    print(user1.title())
elif select == 2:
    user2 = input("Enter your data: ")
    print("Your output is: ")
    print(user2.capitalize())
elif select == 3:
    user3 = input("Enter your data: ")
    print("Your output is: ")
    print(user3.upper())
elif select == 4:
    user4 = input("Enter your data: ")
    print("Your output is: ")
    print(user4.lower())  


Comments