"Improve the function ask_number() so that the function can be called with a step value. Make the default value of step 1."
Those are the directions I have to follow. I dont know what a step function is, so I dont know how to change ask_number() to be called by one.
here is ask_number:
Thank you for your help!
Those are the directions I have to follow. I dont know what a step function is, so I dont know how to change ask_number() to be called by one.
here is ask_number:
Code:
def ask_number(question, low, high): """Ask a yes or no question.""" response = None while response not in range(low, high): response = int(raw_input(question)) return response
Comment