Clean and simple. solution in Clear category for Number Base by Celshade
def checkio(str_number: str, radix: int) -> int:
"""Return the string to decimal form, using the given radix."""
return int(str_number, radix)
June 13, 2018