Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Number Base by radekj
def checkio(str_number, radix):
try:
return int(str_number, radix)
except ValueError:
return -1
#These "asserts" using only for self-checking and not necessary for auto-testing
May 19, 2014
Comments: