I make a list or tuple including some binary or hex numbers in Python.
lst = [0x2ad2, 0xffcc00, 0xfcfc2]
tup = (0x2ad2, 0xffcc00, 0xfcfc2)
print(lst)
print(tup)
But Python turns them to decimal. I want them to stay in their original number system. is there a method or function for that? How can I prevent that?
(10962, 16763904, 1036226)
[10962, 16763904, 1036226]