bytearray()

http://www.adilwaseem.com/

Introduction
The function construct mutable bytearray object from iterable int range from 1 to 256, string, an integer .

Syntax
bytearray(x)

Parameters
x=number

Examples
The returns are:
 >>> bytearray(1)
bytearray(b'\x00')
>>> x=[1,3,4]
>>> bytearray(x)
bytearray(b'\x01\x03\x04')
>>> 

Comments