Jan-17-2019, 05:59 PM
(This post was last modified: Jan-17-2019, 06:09 PM by ichabod801.)
Not understanding the question. Improve the function ask_number() so that the function can be called with a step value. Make the default value of step 1.
def ask_number(question, low, high) """Ask for a number within a range.""" response = None While response not in range(low, high): response = int(input(question)) return responseFirst post ever! Hope I did this right.