<jupyter_start><jupyter_text>Assignment 1<jupyter_code>def getInput(argument):
    
    def wrapFunc():
        num = int(input("Enter a range-"))
        argument(num)
    return wrapFunc()
    
@getInput
def Fibonacci(num):
    n1 = 0
    n2 = 1
    count = 0
    if num <= 0:
        print("Enter a positive integer")
    elif num == 1:
        print("Fibonacci sequence")
        print(n1)
    else:
        print("Fibonacci sequence:")
        while count < num:
            print(n1)
            n = n1 + n2
            n1 = n2
            n2 = n
            count += 1<jupyter_output>Enter a range-25
Fibonacci sequence:
0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368<jupyter_text>Assignment 2<jupyter_code>file = open("Day8Assignment.txt","w")
file.write("This is my Day 8 assignment")
file.close()
try:
    file = open("Day8Assignment.txt","r")
    file.write("This is the second line")
except Exception as e:
    print("The file is-", e)<jupyter_output>The file is- not writable
{'fraction_non_alphanumeric': 0.109284332688588, 'fraction_numerical': 0.08704061895551257, 'mean_word_length': 2.4385382059800667, 'pattern_counts': {'":': 0, '<': 9, '<?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': '264299', 'license': 'Apache-2.0', 'n_tokens_mistral': 424, 'n_tokens_neox': 379, 'n_words': 108, 'path': '_Day 8- Assignment 1 & 2 - B7.ipynb', 'repo_name': 'CianoKing/LetsUpgrade-Python-B7', 'size': '1034'}