<jupyter_start><jupyter_text>DAY 8 - ASSIGNMENT 1 - FIBONACCI USING DECORATERS<jupyter_code>def Fibonacci_series(calculate_fibo_series):
    def fibo_function() :
        print("Enter the range of fibonacci series:" )
        num = int(input("Range of fibonacci series:" ) )
        calculate_fibo_series(num)

    return fibo_function
@Fibonacci_series
def fibonacci(x) :
    A=0
    B=1
   
    if A==1:
        print(A) 
    else:
        print(A) 
        print(B)

    for i in range(2,x):
        C = A + B
        A = B
        B = C
        print(C) 

    return fibonacci

fibonacci()<jupyter_output>Enter the range of fibonacci series:
Range of fibonacci series:10
0
1
1
2
3
5
8
13
21
34<jupyter_text>DAY 8 - ASSIGNMENT 2 - ERROR AND EXCEPTION HANDLING<jupyter_code>file = open("Myfile.txt","w")
file.write("Hello")
file.close()
try:
    file = open("Myfile.txt","r")
    file.write("Hello....!!!This is Pranavi")
    file.close()
    print("Success")
except Exception as e:
    print(e)
finally:
    print("-----END-----")<jupyter_output>not writable
-----END-----
{'fraction_non_alphanumeric': 0.1330232558139535, 'fraction_numerical': 0.021395348837209303, 'mean_word_length': 2.6723549488054608, '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': '134203', 'license': 'Apache-2.0', 'n_tokens_mistral': 423, 'n_tokens_neox': 403, 'n_words': 96, 'path': 'Day8Assignment_B7.ipynb', 'repo_name': 'pandyadeep248/Deep-letsupgrade-Python-B7-Assignments', 'size': '1075'}