myDecimalInteger = int("A278832", 16) #Converts to decimal from base 16
print(int("61", 16)) # output 97 (ascii value "a")
hex(x) being x the integer you want to convert