I am trying to convert big integer number to hexadecimal, but in result I get extra \"0x\" in the beginning and \"L\" at the and. Is there any way to remove them. Thanks. The nu
Similar to Praveen's answer, you can also directly use built-in format().
format()
>>> a = 44199528911754184119951207843369973680110397 >>> format(a, 'x') '1fb62bdc9e54b041e61857943271b44aafb3d'