def get_valid_values(value, min_value, max_value):
    """Assumes value a string, min_value and max_value integers.
    If value is in the range returns True.
    Otherwise returns False."""
    valid_values = [i for i in range(min_value, max_value + 1)]
    try:
        value = int(value)
    except ValueError:
        return False
    if value in valid_values:
        return True
    return False