<jupyter_start><jupyter_text>Functions without Arguments/return statement<jupyter_code>def checkEven():
    for i in range(10):
        if i%2 == 0:
            print(f'{i} is an even number')
        else:
            print(f'{i} is an odd number')
checkEven()<jupyter_output><empty_output><jupyter_text>Function with Arguments<jupyter_code>def checkEvenArg(n):
    for i in range(n):
        if i%2 == 0:
            print(f'{i} is an even number')
        else:
            print(f'{i} is an odd number')
checkEvenArg(6)
def checkEvenlst(num):
    num[5] = 6
    for i in num:
        if i%2 == 0:
            print(f'{i} is an even number')
lst_num = [1,2,3,4,5,10]
checkEvenlst(lst_num)
print(lst_num)
lst_num = [1,2,3,4,5,10]
lst_num_arg = lst_num[:]
checkEvenlst(lst_num_arg)
print(lst_num)
tup_num = tuple(lst_num)
checkEvenlst(tup_num)<jupyter_output><empty_output><jupyter_text>Function with Argument and return statement<jupyter_code>def checkEvenArgRet(num):
    lst_even = []
    lst_odd = []
    for i in num:
        if i%2 == 0:
            lst_even.append(i)
        else:
             lst_odd.append(i)
    return lst_even,lst_odd
checkEvenArgRet(list(range(1,20)))
type(checkEvenArgRet(list(range(1,20))))
even, odd = checkEvenArgRet(list(range(1,20)))
even
odd
result = checkEvenArgRet(list(range(1,20)))
result<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1337252020573108, 'fraction_numerical': 0.028655400440852314, 'mean_word_length': 3.6013513513513513, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '139610', 'license': 'MIT', 'n_tokens_mistral': 539, 'n_tokens_neox': 521, 'n_words': 105, 'path': 'Day_8/Functions.ipynb', 'repo_name': 'chetanadhikary/weekday_python', 'size': '1361'}