?
What will be the output of the following Python code?
What will be the output of the following Python code?
def mk(x):
def mk1():
print("Decorated")
x()
return mk1
def mk2():
print("Ordinary")
p = mk(mk2)
p()
def mk(x):
def mk1():
print("Decorated")
x()
return mk1
def mk2():
print("Ordinary")
p = mk(mk2)
p()
Join the Discussion
Login to post a comment or share your explanation.
Login