isupper() function in python by R4R Team

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

Example
string is "smallstring"
it will return False

string is "MYTEXT"
it will return True


program-


s="mytext"
print(s.isupper())
s="MYTEXT"
print(s.isupper())
s="MYTEXT123"
print(s.isupper())
s="MyText"
print(s.isupper())
s="MyText123"
print(s.isupper())
s="12345532"
print(s.isupper())


output-


False
True
True
False
False
False


-In this program, we just check for different strings that it is in uppercase or not by using isupper() 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!