Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Why printing an decorated function return NONE

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