<jupyter_start><jupyter_text>**Deel 1**<jupyter_code>def vindnummer(nummers, preamble):
    i = 0   
    eigenschap = True
    while eigenschap == True:
        num = nummers[preamble+i]
        subset = nummers[i:preamble+i]
        sommen = []
        [sommen.append(sum(combi)) for combi in itertools.combinations(subset, 2)]    
        if num not in sommen:
            eigenschap = False
            return(num)
        i += 1
nummer = vindnummer(data, 25)
print(nummer)<jupyter_output>258585477<jupyter_text>**Deel 2**<jupyter_code>def vindcombis(nummers):
    n = len(nummers)
    indices = list(range(n+1))
    for i,j in itertools.combinations(indices,2):
        yield nummers[i:j]
for combi in list(vindcombis(data)):
    if sum(combi) == nummer:
        print(min(combi) + max(combi))
        break<jupyter_output>36981213
{'fraction_non_alphanumeric': 0.12455089820359282, 'fraction_numerical': 0.031137724550898204, 'mean_word_length': 3.058252427184466, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '581767', 'license': 'Apache-2.0', 'n_tokens_mistral': 339, 'n_tokens_neox': 314, 'n_words': 58, 'path': 'Dag9.ipynb', 'repo_name': 'isepri/Adventofcode2020', 'size': '835'}