def valid_octet (oct):
    """ Validates a single IP address octet.
    Args:
        oct (int): The octet to validate
    Returns:
        bool: True if the octet is valid, otherwise false
    """
    return oct >= 0 and oct <= 255