You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than the complicated exponent solution, after checking for non-hex characters, why not just return int(hexNum, 16)?
In my solution, this worked for 1, 2, and 3 character lengths.