<jupyter_start><jupyter_text>Quiz 0103   Code the class named 'Calculator' that outputs the result as shown.<jupyter_code>class Calculator:
    num1=0
    num2=0
    def __init__(self,number1, number2):
        self.number1= number1
        self.number2= number2
        Calculator.num1= number1
        Calculator.num2= number2
        print("The object is created")        
    def sum(self):
        return Calculator.num1 + Calculator.num2
    def subtract(self):
        return Calculator.num1 - Calculator.num2
    def product(self):
        return Calculator.num1 * Calculator.num2
    def divide(self):
        return Calculator.num1 / Calculator.num2<jupyter_output><empty_output><jupyter_text>Test results:<jupyter_code>calc1 = Calculator(5,3)
calc2 = Calculator(10,2)
print(calc1.sum())
print(calc1.subtract())
print(calc1.product())
print(calc1.divide())
print(calc2.sum())
print(calc2.subtract())
print(calc2.product())
print(calc2.divide())<jupyter_output>12
8
20
5.0
{'fraction_non_alphanumeric': 0.11518858307849134, 'fraction_numerical': 0.04892966360856269, 'mean_word_length': 3.766990291262136, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '639847', 'license': 'MIT', 'n_tokens_mistral': 362, 'n_tokens_neox': 340, 'n_words': 66, 'path': 'Rafay notes/Samsung Course/Chapter 2/Quiz/Mohammad Abdu Rafay BSE183009.ipynb', 'repo_name': 'rafay99-epic/Ssmsunng-Innovation-Campus-Notes', 'size': '981'}