May-19-2023, 11:30 AM
(This post was last modified: May-19-2023, 03:24 PM by deanhystad.)
Ok, I went the wrong direction.
13889 -> bytes = (0x36, 0x41) or (54, 65) -> ascii characters = ("6", "a") -> string = "6a"
13889 -> bytes = (0x36, 0x41) or (54, 65) -> ascii characters = ("6", "a") -> string = "6a"
number = 13889 as_bytes = number.to_bytes(2, "big") as_ascii = "".join(chr(b) for b in as_bytes) print(as_ascii)
Output:6a