1 Questions
def mk(x): def mk1(): print("Decorated") x() return mk1 def mk2(): print("Ordinary") p = mk(mk2) p()
Decorated Ordinary
Test your knowledge of Python decorators with this quiz that involves creating and using decorators in Python functions.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free