ID EN
Built-in Functions

bytes

Python 3.11

Return a new “bytes” object which is an immutable sequence of integers in the range 0

Syntax

PYTHON
class bytes(source=b'')

See Also

bytes bytearray bytearray() String and Bytes literals Bytes Objects Bytes and Bytearray Operations