From 3e20f23f4016509127de74a562aa5df688e166d9 Mon Sep 17 00:00:00 2001 From: Martin Mendoza Date: Thu, 28 May 2020 21:16:23 -0500 Subject: [PATCH] Challenge solved --- html_decorators.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..a965126 100644 --- a/html_decorators.py +++ b/html_decorators.py @@ -1,16 +1,22 @@ def div(func): - # You have to code here! - pass + def wrapper(*args): + result = func(*args) + return '
' + result + '
' + return wrapper def article(func): - # You have to code here! - pass + def wrapper(*args): + result = func(*args) + return '
' + result + '
' + return wrapper def p(func): - # You have to code here! - pass + def wrapper(*args): + result = func(*args) + return '

' + result + '

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