From db027e4eaa47bc66afa0e8aeabbfc25609bb98f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Mongu=C3=AD?= Date: Wed, 27 May 2020 12:19:02 -0500 Subject: [PATCH] Reto 04 resuelto --- html_decorators.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..f45424b 100644 --- a/html_decorators.py +++ b/html_decorators.py @@ -1,16 +1,25 @@ def div(func): - # You have to code here! - pass + + def wrapper(*args): + return f'
{func(*args)}
' + + return wrapper def article(func): - # You have to code here! - pass + + def wrapper(*args): + return f'
{func(*args)}
' + + return wrapper def p(func): - # You have to code here! - pass + + def wrapper(*args): + return f'

{func(*args)}

' + + return wrapper # Here you must apply the decorators, uncomment this later