From 58f02eec50368924ca2ddb51c6776dd64041617e Mon Sep 17 00:00:00 2001 From: Asoretzu Date: Sat, 30 May 2020 13:38:51 -0500 Subject: [PATCH] Completed the decorators. --- html_decorators.py | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..66c7eb8 100644 --- a/html_decorators.py +++ b/html_decorators.py @@ -1,20 +1,32 @@ +#
function def div(func): - # You have to code here! - pass + def div_print(*args): + return f'
{ func(*args) }
' + + return div_print + +#
function def article(func): - # You have to code here! - pass + + def article_print(*args): + return f'
{ func(*args) }
' + + return article_print +#

function def p(func): - # You have to code here! - pass + + def p_print(*args): + return f'

{ func(*args) }

' + + return p_print # Here you must apply the decorators, uncomment this later -# @div +@div # @article # @p def saludo(nombre):