Run
x = bytearray('hello world', 'utf-8') print(x)
Output