How to assign numbers (10,11,12,13,14,15) to letters (A,B,C,D,E,F) in python 3?

Published: 5/10/2017
How to assign numbers (10,11,12,13,14,15) to letters (A,B,C,D,E,F) in python 3?
Source: STACKOVERFLOW.COM

I recently wrote a program that converts base 10 numbers to hexadecimal without using any built-in python functions. The way it works is it divides the user-inputted number by base 16 (each time updating the value of the number to be the quotient from the last division), until you get a quotient of zero. It keeps track of the remainders, and collects them in a list, and outputs the list as a numbe

Read more
Related news
Comment