Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Within 3 guesses solution in Clear category for Number Guess by artakase
def checkio(attempts):
if len(attempts) == 1:
return [10, 100]
elif len(attempts) == 2:
rem_10 = attempts[1][0]
return [9, 90 + rem_10]
else:
rem_10, rem_9 = attempts[1][0], attempts[2][0]
return [2, ((rem_9 - rem_10) % 10) * 9 + rem_9]
Sept. 6, 2015
Comments: