1

in python3

I have a = '0e' The type of a is a str. I want the type of a to be a hex

How do I do this?

hex('0e') gives and error '0e'.encode gives '3065', also not what I want.

I want b = 0e where b is type hex

Rorschach
  • 3,684
  • 7
  • 33
  • 77

0 Answers0