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