import ipaddress


def first_subnet(subnets, version=4):
    """
    Returns the first subnetwork of a list, filtered by version
    """
    for subnet in subnets:
        network = ipaddress.ip_network(subnet)
        if network.version == version:
            return subnet
    return ""