I have a func
def dec(any):
def wrap():
print('This is decorate')
any()
return wrap
@dec
def func1():
print('This is fun1')
print(func1())
It returns
This is decorate
This is fun1
None
I'm unable to understand why None is there in the last . Ik it is because of print but why so?
Thanks
Comments
Post a Comment