convert from hex to decimal in python code example
Example 1: string hex to decimal python
x = int("deadbeef", 16)
Example 2: python convert hex number to decimal
print(int("61", 16)) # output 97 (ascii value "a")
x = int("deadbeef", 16)
print(int("61", 16)) # output 97 (ascii value "a")