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):