Bytearray Methods
bytearray.islower()
Check that at least one ASCII lowercase letter occurs and no ASCII uppercase letters occur. Uncased bytes, including digits, punctuation and high bytes, do not prevent success. Empty or entirely uncased data returns False. This does not prove the entire input is ASCII. The receiver is not modified. Returns a Boolean, not a transformed sequence. These operations are intended for ASCII-compatible data, not arbitrary binary formats.
Formal Syntax & Structure
python syntaxpython
data.islower()Return Value
bool
True when the stated condition holds; False otherwise.
Working Example
Example Snippetpython
for token in (bytearray(b'api-7'), bytearray(b'Api'), bytearray(b'\xffa')): print(token, token.islower())