The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
def make_bold(fn): return lambda: "<b>" + fn() + "</b>" def make_italic(fn): return lambda: "<i>" + fn() + "</i>" @make_bold @make_italic def hello(): return "hello world" helloHTML = hello()
Decorator are applied from bottom to top. @make_italic will be applied first and @make_bold then. (stackoverflow.com/questions/27342149/decorator-execution-...)
Question difficulty: 🔵🔵🔵🔵🔵