python convert hex to integer without using hex code example Example: string hex to decimal python x = int("deadbeef", 16)