Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Number Base solution in Clear category for Number Base by michal_bien
def checkio(str_number, radix):
try:
result = int(str_number, radix)
except ValueError:
return -1
return result
Oct. 6, 2016