def ask_number(question, low, high):
    """Poproś o podanie liczby z określonego zakresu."""
    response = None
    while type(response) != int:
        try:
            response = int(input(question))
            while response not in range(low, high):
                response = int(input(question))
        except ValueError:
            print("Value must be a number")
    return response