Python Decorators Quiz
1 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

def mk(x): def mk1(): print("Decorated") x() return mk1 def mk2(): print("Ordinary") p = mk(mk2) p()

  • Decorated Decorated
  • Ordinary Ordinary
  • Ordinary Decorated
  • Decorated Ordinary (correct)
  • More Like This

    Use Quizgecko on...
    Browser
    Browser