Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Correct Exceprt solution in Clear category for Number Base by bryukh
def checkio(sn, radix):
"""
Convert number into decimal form wtih radix or return -1
"""
try:
return int(sn, radix)
except ValueError:
return -1
Feb. 20, 2014