Answers for "j"

0

j

def hexConvert (x):
    return int(x, base)

x = str(input("input value to convert to decimal: "))
base = int(input("Base of value to be converted to decimal: "))
print(x, " in base ", base, " = ", hexConvert(x), " in decimal")
Posted by: Guest on June-14-2020

Browse Popular Code Answers by Language