Vidyalelo
Python · Q76

Formatting and Decorators

Programming · Python · question 76

Q76

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 def a(x): def f1(*args, **kwargs): print("%"* 5) x(*args, **kwargs) print("%"* 5) return f1 @f @a def p(m): print(m) p("hello")

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

Answer: Option A

Solution

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