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
A more elegant way would be
hex(_number)[2:-1]
but you have to be careful if you're working with gmpy mpz types, then the 'L' doesn't exist at the end and you can just use
hex(mpz(_number))[2:]