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