From dd70b89dd92a0fa2271ad73a20832ce5668e2a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Mart=C3=ADnez?= Date: Tue, 30 Jun 2020 20:19:00 -0500 Subject: [PATCH] Solucion --- html_decorators.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..68c721a 100644 --- a/html_decorators.py +++ b/html_decorators.py @@ -1,22 +1,25 @@ def div(func): - # You have to code here! - pass + def wrapper(*args, **kwargs): + print(f'
{func(*args, **kwargs)}
') + return wrapper + def article(func): - # You have to code here! - pass + def wrapper(*args, **kwargs): + print(f'
{func(*args, **kwargs)}
') + return wrapper def p(func): - # You have to code here! - pass - + def wrapper(*args, **kwargs): + print(f'

{func(*args, **kwargs)}

') + 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?'