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