Vidyalelo
Python · Q75

Formatting and Decorators

Programming · Python · question 75

Q75

What will be the output of the following Python code? def f(x): def f1(*args, **kwargs): print("*", 5) x(*args, **kwargs) print("*", 5) return f1 @f def p(m): p(m) print("hello")

A.
*****
hello
B.
*****
*****
hello
C.
*****
D.
hello
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board