Bytes Methods

bytes.lower()

Map uppercase ASCII letters A–Z to a–z, preserving all other bytes. This is useful for case-insensitive ASCII tokens; UTF-8 letters outside ASCII are not lowercased. For multilingual case conversion decode to str first. The original bytes remain unchanged; do not depend on the result having a different identity. These operations are intended for ASCII-compatible data, not arbitrary binary formats.

Formal Syntax & Structure

python syntaxpython
data.lower()

Return Value

bytes

bytes containing the transformed byte values; receiver unchanged.

Working Example

Example Snippetpython
data = bytes(b'API-Ready 7')result = data.lower()print(result)print(bytes(b'\xc3\x89Z').lower())print(data)
Python Reference