class Calculator:
    def __init__(self):
        self.operations = []

    def add(self, number):
        self.operations.append('add')
        self.operations.append(number)

    def subtract(self, number):
        self.operations.append('subtract')
        self.operations.append(number)

    def multiply(self, number):
        self.operations.append('multiply')
        self.operations.append(number)

    def divide(self, number):
        self.operations.append('divide')
        self.operations.append(number)

    def clear(self):
        self.operations = []

    def execute(self):
        if not self.operations:
            return 0

        result = self.operations[0]
        for op, value in self.operations[1:]:
            if op == 'add':
                result = result + value
            elif op == 'subtract':
                result = result - value
            elif op == 'multiply':
                result = result * value
            elif op == 'divide':
                result = result / value

        return result Your response should contain less than 250 words.
user