String Methods
str.islower()
Test that at least one cased character occurs and that every cased character is lowercase. Digits, punctuation and uncased script characters do not invalidate otherwise lowercase text. An entirely uncased string fails, even if lower() leaves it unchanged. Takes no arguments.
Formal Syntax & Structure
python syntaxpython
text.islower()Return Value
bool
True when the stated classification holds; otherwise False.
Working Example
Example Snippetpython
for text in ("api-42", "API", "سلام", "سلام a", ""): print(repr(text), text.islower())