Python Decorator - Run function() twice

PHOTO EMBED

Sat Nov 26 2022 10:29:53 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 #python #decorators

def my_decorator(func):
    def wrapper():
        func()
		func()

    return wrapper
content_copyCOPY