Variable Length Encoder

I’m having a hard time returning hexadecimal numbers that aren’t strings. I’m not even sure there is a way. Has anyone done this exercise?

I want encoder([0x0]) → [0x0]
I get encoder([0x0]) → [‘0x0’]

Do you mean Variable Length Quantity? 677 students have successfully completed the exercise for Python.

A Hex number is a formatted version of an int, so there is no “hex number”, only an int that is formatted to display as hex. hex().

But … for this exercise, you might want to be looking at Bitwise Operators, rather than hex numbers.