diff --git a/html_decorators.py b/html_decorators.py index 8d9c421..a965126 100644 --- a/html_decorators.py +++ b/html_decorators.py @@ -1,16 +1,22 @@ def div(func): - # You have to code here! - pass + def wrapper(*args): + result = func(*args) + return '
' + result + '
' + return wrapper def article(func): - # You have to code here! - pass + def wrapper(*args): + result = func(*args) + return '
' + result + '
' + return wrapper def p(func): - # You have to code here! - pass + def wrapper(*args): + result = func(*args) + return '

' + result + '

' + return wrapper # Here you must apply the decorators, uncomment this later