What will be the output of the following Python code? [code]def f(x): def f1(*args, **kwargs): print("*"* 5) x(*args,

What will be the output of the following Python code?
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
%%%%%
*****
B. Error
C. *****%%%%%hello%%%%%*****
D. hello
 

Tìm kiếm

Back
Top