Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
try ... except solution in Clear category for Number Base by David_Jones
def checkio(str_number, radix):
try:
return int(str_number, radix)
except ValueError:
return -1
June 5, 2019
Comments: