diff --git a/html_decorators.py b/html_decorators.py
index 8d9c421..fb04f6f 100644
--- a/html_decorators.py
+++ b/html_decorators.py
@@ -1,22 +1,36 @@
+# -*- codign: utf-8 -*-
+
def div(func):
# You have to code here!
- pass
+ def wrapper(*args, **kwargs):
+ element, data = 'div', func(*args)
+ print(f'<{element}>{data}{element}>')
+ return data
+ return wrapper
def article(func):
# You have to code here!
- pass
+ def wrapper(*args, **kwargs):
+ element, data = 'article', func(*args)
+ print(f'<{element}>{data}{element}>')
+ return data
+ return wrapper
def p(func):
# You have to code here!
- pass
+ def wrapper(*args, **kwargs):
+ element, data = 'p', func(*args)
+ print(f'<{element}>{data}{element}>')
+ return data
+ return wrapper
# Here you must apply the decorators, uncomment this later
-# @div
-# @article
-# @p
+@div
+@article
+@p
def saludo(nombre):
return f'¡Hola {nombre}, ¿Cómo estás?'