def is_in_window(n, window_center, tolerance) -> bool:
    """Given a number and window, returns true if the number is in that range."""
    return window_center - tolerance <= n <= window_center + tolerance