Workout #4: Hexademical Output
Sep 18, 2021
For this exercise, you need to write a function (hex_output) that takes a hex number and returns the decimal equivalent. That is, if the user enters 50, you’ll assume that it’s a hex number (equal to 0x50) and will print the value 80 to the screen.
TRY IT YOURSELF
ANSWER
https://colab.research.google.com/drive/1AbYez0CszZShJcO5AaCneLp0r2PA7iy3?usp=sharing