Run
x = "apple" output = bytearray(x, 'utf-8') print(f'x : {x}') print(f'bytearray(x) : {output}')
Output