islower() function in python by R4R Team

- islower() is a string function in python which return True or False.
- it will return True if string is in the lowercase and it will return false when string is in uppercase.

Example
string is "smallstring"
it will return True

string is "MYTEXT"
it will return False


program-


s="mytext"
print(s.islower())
s="MYTEXT"
print(s.islower())
s="mytext123"
print(s.islower())
s="MyText"
print(s.islower())
s="MyText123"
print(s.islower())
s="12345532"
print(s.islower())


output-


True
False
True
False
False
False


-In this program, we just check for different strings that it is in lowercase or not by using islower() function.




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!