<jupyter_start><jupyter_text>Question 1 Write a decorator function for your taking input for you any kind of function you want to build,For example - You make a fibonacci series function,in which your input range is been defined bythe decorator program input.<jupyter_code>arr = []

def getInput(calculate_arg_fun):
    def wrap_function():
        print("Hey people enter two numbers =")
        a = int(input("Enter your upper limit - "))
        b = int(input("Enter your lower limit - "))
        calculate_arg_fun(a,b)   
    return wrap_function
@getInput
def fib(a,b):
    c=0
    for i in range(b):
        a, c = a + c, a
        print(a," ")
fib()<jupyter_output>Hey people enter two numbers =
Enter your upper limit - 1
Enter your lower limit - 60
1  
2  
3  
5  
8  
13  
21  
34  
55  
89  
144  
233  
377  
610  
987  
1597  
2584  
4181  
6765  
10946  
17711  
28657  
46368  
75025  
121393  
196418  
317811  
514229  
832040  
1346269  
2178309  
3524578  
5702887  
9227465  
14930352  
24157817  
39088169  
63245986  
102334155  
165580141  
267914296  
433494437  
701408733  
1134903170  
1836311903  
2971215073  
4807526976  
7778742049  
12586269025  
20365011074  
32951280099  
53316291173  
86267571272  
139583862445  
225851433717  
365435296162  
591286729879  
956722026041  
1548008755920  
2504730781961<jupyter_text>Question 2For this challenge you need to develop a Python program to open a file in read only mode and trywriting something to it and handle the subsequent errors using Exception Handling.<jupyter_code>%%writefile test.txt

Hey I am <NAME> from sitapur UP. I am a Full Stack Java Developer.
f = open("test.txt",'r')
f.read()

try:
    f.write("Super Super\n")
except:
    print("You Can not write in this file .to write in it please change the opening mode to eda and write")
finally:
    f.close()<jupyter_output>You Can not write in this file .to write in it please change the opening mode to eda and write
{'fraction_non_alphanumeric': 0.05708460754332314, 'fraction_numerical': 0.2089704383282365, 'mean_word_length': 3.1153039832285114, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '290675', 'license': 'Apache-2.0', 'n_tokens_mistral': 941, 'n_tokens_neox': 707, 'n_words': 243, 'path': 'Assignment Day 8.ipynb', 'repo_name': 'ratikeshbajpai/Letsupgrade-Python', 'size': '1971'}