hexadecimal to base 10 python code example Example: string hex to decimal python x = int("deadbeef", 16)