diff --git a/challenge.py b/challenge.py index c69287d..ad48eef 100644 --- a/challenge.py +++ b/challenge.py @@ -1,9 +1,14 @@ import time -def finish_date(): - # You have to code here!! - +def finish_date(func): + def wrapper(*args, **kwargs): + func(*args, **kwargs) + + final_time = time.time() + final_time = time.strftime('%d/%m/%Y - %H:%M:%S') + print(f'Func: {func.__name__} finished at: {final_time}') + return wrapper @finish_date def palindrome(string):