Is there a way to get python to print an even number of bytes when formatting hex? For example:
>>> hex(12)
'0xc'
>>> f'{12:#x}'
'0xc'
>>> f'{12:#X}'
'0XC'
>>> f'{12:X}'
'C'
>>> f'{12:x}'
'c'
Additionally, does python have a formatted that will separate bytes when there are multiple? For example:
>>> hex(1000)
'0x3e8' # 0e e8
Or would I need to create my own formatter for this?