From b460433d4c32a664f4b19b14f12c79927e41f727 Mon Sep 17 00:00:00 2001 From: David Guerra Date: Wed, 17 Jun 2020 07:42:59 -0500 Subject: [PATCH] solucion david guerra C4 --- html_decorators.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..f78ea41 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): + return '
'+func(*args, **kwargs)+'
' + return wrapper def article(func): - # You have to code here! - pass + def wrapper(*args, **kwargs): + return '
'+func(*args, **kwargs)+'
' + return wrapper def p(func): - # You have to code here! - pass + def wrapper(*args, **kwargs): + return '

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