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