From cbbfb3d5c32f4598f64be1992c1b1093f7f36ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Chipatecua?= Date: Wed, 6 May 2020 23:46:46 -0500 Subject: [PATCH] Challenge Python 08 completed --- challenge.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/challenge.py b/challenge.py index c69287d..90ffead 100644 --- a/challenge.py +++ b/challenge.py @@ -1,8 +1,11 @@ import time -def finish_date(): - # You have to code here!! +def finish_date(func): + def wrapper(*args, **kwargs): + func(*args, **kwargs) + print(f"The function {func.__name__} ran {time.strftime('%d/%m/%Y - %H:%M:%S', time.localtime())}") + return wrapper @finish_date