Bytearray Methods
bytearray.istitle()
Check that each consecutive run of ASCII letters begins uppercase and continues lowercase, with at least one ASCII letter overall. Uncased bytes delimit runs. Empty or entirely uncased sequences fail, even when title() would leave them unchanged. 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.istitle()Return Value
bool
True when the stated condition holds; False otherwise.
Working Example
Example Snippetpython
for token in (bytearray(b'Api Ready'), bytearray(b'API Ready'), bytearray(b'Part2Name')): print(token, token.istitle())