एक साधारण कैलकुलेटर के लिए एक क्लास डिज़ाइन करें।
class Calculator:
    def add(self, num1, num2):
        return num1 + num2
    
    def subtract(self, num1, num2):
        return num1 - num2
    
    def multiply(self, num1, num2):
        return num1 * num2
    
    def divide(self, num1, num2):
        if num2 == 0:
            return "Cannot divide by zero"
        else:
            return num1 / num2
    
# Usage Example
cal = Calculator()

print(cal.add(2, 3))
print(cal.subtract(5, 1))
print(cal.multiply(4, 6))
print(cal.divide(10, 2))
print(cal.divide(10, 0)) # prints "Cannot divide by zero"