From c862a450a8cded43809f8364f794146b7b34a56a Mon Sep 17 00:00:00 2001 From: "Luis A. Cruz Cruz" Date: Fri, 26 Jun 2020 13:59:28 -0500 Subject: [PATCH] Challenge solved by Luis_Cruz. Thanks a lot! --- html_decorators.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..f247c26 100644 --- a/html_decorators.py +++ b/html_decorators.py @@ -1,22 +1,32 @@ def div(func): # You have to code here! - pass + def wrapper(*arg, **kwargs): + answer_1 = f'
{func(*arg, **kwargs)}
' + return answer_1 + return wrapper def article(func): # You have to code here! - pass + def wrapper(*arg, **kwargs): + answer_2 = f'
{func(*arg, **kwargs)}
' + return answer_2 + return wrapper def p(func): # You have to code here! - pass + def wrapper(*arg, **kwargs): + answer_3 = f'

{func(*arg, **kwargs)}

' + return answer_3 + + return wrapper # Here you must apply the decorators, uncomment this later -# @div -# @article -# @p +@div +@article +@p def saludo(nombre): return f'¡Hola {nombre}, ¿Cómo estás?'