lower() function in python by R4R Team

- lower() is a python string function which convert the given string into the lowercase letters.

Example

string is "MyString"
required string is "mystring"

string is "WORNING"
required string is "worning"


program-


print("Enter string in uppercase")
s=input()
s=s.lower()
print("String in Lower case is ",s)

s="MYTEXT"
print(s.lower())

s="MYTEXT123"
print(s.lower())


output -

Enter string in uppercase
THIS IS THE STRING
String in Lower case is this is the string
mytext
mytext123


-In this program, firstly we take input of string in uppercase and using s.lower() we convert uppercase string into lowercase string and again stored in s and print that string.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!