Bite 22. Write a decorator with argument

Write a decorator called make_html that wraps text inside one or more html tags.

As shown in the tests decorating get_text with make_html twice should wrap the text in the corresponding html tags, so:

def get_text(text='I code with PyBites'):
    return text

- would return: <p><strong>I code with PyBites</strong></p>

Have fun and start to grok decorators!

203 out of 210 users completed this Bite.
Will you be Pythonista #204 to crack this Bite?
It takes an average of ~59 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 5.91 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Login and get coding
We use Python 3.7