+ 1
I understand the string represents an integer
In python3:
answer=int(string)
answer=hex(answer)
answer=answer[2:]
return answer
Short(er) Version(someone would do it better for sure):
return hex(int(answer))[2:]
Not tested. I think it's right but without testing I don't know for sure. You should try it.