I\'m trying to learn Decorators . I understood the concept of it and now trying to implement it.
Here is the code that I\'ve written The code is se
def wrapper(func): def inner(*args,**kwargs): if ((args[0] is int) and (args[1] is int)): pass else: return 'invalid values' return inner @wrapper def add(x,y): return x+y print add('a',2)