6 kyu
@htmlize
169kingcobra
Description:
Implement the htmlize decorator, which takes in a string argument and uses it to wrap a function's return value in html tags. Your decorator must be composable (i.e., it must be possible to do several decorations in a row) and well-behaved (i.e., your decorator must not change the name or docstring of the decorated function).
Example :
'section')
('blockquote')
def generate_lorem(n_sentences):
... # Contents hidden for brevity
print(generate_lorem(1))
# Prints the following :
<section><blockquote>Has nominavi soleat eu homero has te ancillae.</blockquote></section>
(
Fundamentals
Stats:
Created | Nov 7, 2017 |
Published | Nov 9, 2017 |
Warriors Trained | 364 |
Total Skips | 19 |
Total Code Submissions | 458 |
Total Times Completed | 169 |
Python Completions | 169 |
Total Stars | 16 |
% of votes with a positive feedback rating | 95% of 69 |
Total "Very Satisfied" Votes | 64 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 4 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |