Print one character

Report a typo

Below you see a piece of code:

array = bytes([31, 32, 126, 127])
print(array)

Its output is as follows: b'\x1f ~\x7f'.

Basing on this info, what would be the output of the following expression?

print(bytes([126]))

Put your answer in the text box.

Tip: Remember that numbers from 32 to 126 (inclusively) are usually printed as single characters, while other numbers are represented as a backslash with x and two more characters. And don't forget to include the b and the quotes in your answer!

Enter a short text
___

Create a free account to access the full topic