About Lesson
isupper():-
The isupper() method returns True if all the characters are in upper case, otherwise False. Numbers, symbols and spaces are not checked, only alphabet characters.
Syntax:- string.isupper()
txt = “THIS IS NOW!” x = txt.isupper() print(x) Output True |
a = “Hello World!” b = “hello 123” c = “MY NAME IS AKHILESH” print(a.isupper()) print(b.isupper()) print(c.isupper()) Output False False True |