Techdocs / testing /test.py
mayureshagashe2105's picture
Modify AST nodes inplace and write to file
d5eeec7
raw
history blame
329 Bytes
def add(a, b):
return a + b
def multiply(a, b):
return a * b
def subtract(a, b):
return a - b
def divide(a, b):
if b == 0:
raise ValueError("Cannot divide by zero")
return a / b
def func(*args, **kwargs):
def wrapper(*args, **kwargs):
return func(*args, **kwargs)
return wrapper