diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..7c6e121 100644 --- a/html_decorators.py +++ b/html_decorators.py @@ -1,22 +1,30 @@ def div(func): - # You have to code here! - pass + def new_function(*args, **kwargs): + hypertext = '
'+ func(*args, **kwargs) +'
' + return hypertext + return new_function def article(func): - # You have to code here! - pass + def new_function(*args, **kwargs): + hypertext = '
'+ func(*args, **kwargs) +'
' + return hypertext + return new_function def p(func): - # You have to code here! - pass + def new_function(*args, **kwargs): + hypertext = '

'+ func(*args, **kwargs) +'

' + return hypertext + return new_function # Here you must apply the decorators, uncomment this later -# @div -# @article + + # @p +# @div +@article def saludo(nombre): return f'¡Hola {nombre}, ¿Cómo estás?'