LearnFrenzy
Sign in Take a free test

Decorators · Decorators MCQ · Question 12

A wrapper that does not return Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 12 Back to Exercise

A wrapper calls func(*args) but does not return its value. What does the decorated function return?

  • A The original result
  • B The wrapper itself
  • C None Correct
  • D An error
Correct Answer: Option C

Write return func(*args, **kwargs).

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links