Run
x = bytearray('hello world', 'utf-8') x[2] = 77 x[3] = 78 x[4] = 79 print(x)
Output