Python: join two bytearray objects
You can join a byte to an array like below:
b"".join([bytearray(10), bytearray(10)])
Create a new combined bytearray from two:
byt_combined = byt1 + byt2
Extend one bytearray with another. This changes byt1
:
byt1.extend(byt2)