<jupyter_start><jupyter_text>- This will cover the iterative function for finding the sum of a list.<jupyter_code>def summ(listy):
    total = 0
    for i in listy:
        total += i
    return total<jupyter_output><empty_output><jupyter_text>- Of course, this can be solved by using the sum function in python.<jupyter_code>def o_summ(listy):
    return (sum(listy))<jupyter_output><empty_output><jupyter_text>- This will cover the recursive function for finding the sum of a list.<jupyter_code>def summ_r(listy):
    if listy == []:
        return 0
    else:
        return (listy[0] + summ_r(listy[1:]))<jupyter_output><empty_output><jupyter_text>- This will test three functions using preset listys.<jupyter_code>listy0 = []
listy1 = [1, 2, 3, 4, 5]
listy2 = [3, 5, 7, 9, 11]
listy3 = [2, 4, 6, 8, 10, 10]
print (summ(listy0))
print (summ(listy1))
print (summ(listy2))
print (summ(listy3))
print (o_summ(listy0))
print (o_summ(listy1))
print (o_summ(listy2))
print (o_summ(listy3))
print (summ_r(listy0))
print (summ_r(listy1))
print (summ_r(listy2))
print (summ_r(listy3))<jupyter_output>0
15
35
40
{'fraction_non_alphanumeric': 0.1330316742081448, 'fraction_numerical': 0.0416289592760181, 'mean_word_length': 5.043715846994536, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '142076', 'license': 'MIT', 'n_tokens_mistral': 481, 'n_tokens_neox': 450, 'n_words': 117, 'path': '01_SumOfList/01_SumOfList.ipynb', 'repo_name': 'knishina/python_recursion', 'size': '1105'}