In the Python command line, numbers are outputted in decimal format. Is there any way to get idle to output the value as hexadecimal instead? I know I can use the hex(n) function but that gets very tedious to do for every line I want to see the hex value of and it would be easier if I can just get python to output the numbers in hex format instead.
For example 22 and 7 here:
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 22
22
>>> a = 3
>>> b = 6
>>> a | b
7
>>>