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